diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2015-06-19 18:29:58 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2015-06-19 18:29:58 +0100 |
| commit | 6d23bb056a37ee63fcdc2657850204318c0b1d5c (patch) | |
| tree | 66efdf1105608db4f86f7ce30668ead769fd6fe4 /src/string.cc | |
| parent | fce2a216901a39fea88fbf76d46286d7e494b68b (diff) | |
Fix wrong exception type in str_to_int
Diffstat (limited to 'src/string.cc')
| -rw-r--r-- | src/string.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/string.cc b/src/string.cc index 642b668c..8d675388 100644 --- a/src/string.cc +++ b/src/string.cc @@ -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) |
