Report name of non-existant options to help debugging.
This commit is contained in:
parent
4641efb79d
commit
08f28d134a
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
/// If the option does not exist, this exits the application with a return code of 37.
|
||||||
JSON::Value & Util::Config::getOption(std::string optname){
|
JSON::Value & Util::Config::getOption(std::string optname){
|
||||||
if (!vals.isMember(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);
|
exit(37);
|
||||||
}
|
}
|
||||||
if (vals[optname].isMember("current")){
|
if (vals[optname].isMember("current")){
|
||||||
|
|
Loading…
Add table
Reference in a new issue