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

@ -25,7 +25,7 @@ inline std::string trim(const std::string &s)
#define EOFCHECK() \ #define EOFCHECK() \
if(is.eof()) \ 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) std::string get_setting(std::string name, std::istream &is)
{ {