missing throw

This commit is contained in:
Martin Nowak 2013-07-17 19:37:52 +02:00
parent d946bcd4eb
commit f7dc61cb62

View file

@ -1004,9 +1004,9 @@ struct Parser(R, bool CTFE = false)
}
default:
if(__ctfe)
assert(text("unknown regex flag '",ch,"'"));
assert(text("unknown regex flag '",ch,"'"));
else
new RegexException(text("unknown regex flag '",ch,"'"));
throw new RegexException(text("unknown regex flag '",ch,"'"));
}
}
}