Skip to content

Commit

Permalink
Improve error reporting if setting is not found
Browse files Browse the repository at this point in the history
  • Loading branch information
sfan5 committed Jul 8, 2014
1 parent e85a498 commit bca8d3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util.cpp
Expand Up @@ -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)
{
Expand Down

0 comments on commit bca8d3c

Please sign in to comment.