Changing an 'assert(false)' to 'throw false', so that this always errors even in non-debug builds

This commit is contained in:
Nathan Woods 2016-09-09 06:59:54 -04:00
parent 402d84ff34
commit b5a2d1bc77

View File

@ -316,8 +316,8 @@ void option_resolution::entry::parse_specification(const char *specification)
}
else
{
// invalid character
assert(false && "Syntax error in specification");
// invalid character - abort because we cannot recover from this syntax error
throw false;
}
}