From bca8d3ce07e31236fba7cba2b2cc616e5cfd75fa Mon Sep 17 00:00:00 2001 From: sfan5 Date: Tue, 8 Jul 2014 15:31:01 +0200 Subject: [PATCH] Improve error reporting if setting is not found --- util.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util.cpp b/util.cpp index 72541d1..f515ca2 100644 --- a/util.cpp +++ b/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) {