Fix wrong exception type in str_to_int
This commit is contained in:
parent
fce2a21690
commit
6d23bb056a
|
@ -120,7 +120,7 @@ int str_to_int(StringView str)
|
|||
{
|
||||
if (auto val = str_to_int_ifp(str))
|
||||
return *val;
|
||||
throw str + " is not a number";
|
||||
throw runtime_error{str + " is not a number"};
|
||||
}
|
||||
|
||||
InplaceString<16> to_string(int val)
|
||||
|
|
Loading…
Reference in New Issue
Block a user