diff options
-rw-r--r-- | src/base/str.hh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/base/str.hh b/src/base/str.hh index d73058bc0..52ab977fc 100644 --- a/src/base/str.hh +++ b/src/base/str.hh @@ -39,6 +39,8 @@ #include <string> #include <vector> +#include "base/logging.hh" + inline void eat_lead_white(std::string &s) { @@ -157,6 +159,8 @@ to_number(const std::string &value, T &retval) return false; } catch (const std::invalid_argument&) { return false; + } catch (...) { + panic("Unrecognized exception.\n"); } } |