Skip to content

Commit bca8d3c

Browse files
committedJul 8, 2014
Improve error reporting if setting is not found
1 parent e85a498 commit bca8d3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

Diff for: ‎util.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ inline std::string trim(const std::string &s)
2525

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

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

0 commit comments

Comments
 (0)
Please sign in to comment.