Improve error reporting if setting is not found

This commit is contained in:
sfan5 2014-07-08 15:31:01 +02:00
parent e85a49873a
commit bca8d3ce07
1 changed files with 1 additions and 1 deletions

View File

@ -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)
{