From 6d23bb056a37ee63fcdc2657850204318c0b1d5c Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Fri, 19 Jun 2015 18:29:58 +0100 Subject: [PATCH] Fix wrong exception type in str_to_int --- src/string.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)