summaryrefslogtreecommitdiff
path: root/src/string.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/string.cc')
-rw-r--r--src/string.cc2
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)