Fix wrong exception type in str_to_int

This commit is contained in:
Maxime Coste 2015-06-19 18:29:58 +01:00
parent fce2a21690
commit 6d23bb056a

View File

@ -120,7 +120,7 @@ int str_to_int(StringView str)
{ {
if (auto val = str_to_int_ifp(str)) if (auto val = str_to_int_ifp(str))
return *val; return *val;
throw str + " is not a number"; throw runtime_error{str + " is not a number"};
} }
InplaceString<16> to_string(int val) InplaceString<16> to_string(int val)