Skip to content
Permalink
Browse files

Improve error reporting if setting is not found

  • Loading branch information
sfan5 committed Jul 8, 2014
1 parent e85a498 commit bca8d3ce07e31236fba7cba2b2cc616e5cfd75fa
Showing with 1 addition and 1 deletion.
  1. +1 −1 util.cpp
@@ -25,7 +25,7 @@ inline std::string trim(const std::string &s)

#define EOFCHECK() \
if(is.eof()) \
throw std::runtime_error("setting not found");
throw std::runtime_error(((std::string) "Setting '") + name + "' not found");

std::string get_setting(std::string name, std::istream &is)
{

0 comments on commit bca8d3c

Please sign in to comment.
You can’t perform that action at this time.