From 08f28d134a5c690cc3c0fee1d6825e4695bd838b Mon Sep 17 00:00:00 2001 From: Thulinma Date: Mon, 13 Aug 2012 07:59:24 +0200 Subject: [PATCH] Report name of non-existant options to help debugging. --- lib/config.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/config.cpp b/lib/config.cpp index dd37ebcb..0a2327f0 100644 --- a/lib/config.cpp +++ b/lib/config.cpp @@ -219,7 +219,7 @@ void Util::Config::parseArgs(int argc, char ** argv){ /// If the option does not exist, this exits the application with a return code of 37. JSON::Value & Util::Config::getOption(std::string optname){ if (!vals.isMember(optname)){ - std::cout << "Fatal error: a non-existent option was accessed." << std::endl; + std::cout << "Fatal error: a non-existent option '" << optname << "' was accessed." << std::endl; exit(37); } if (vals[optname].isMember("current")){