diff options
author | 2016-09-09 06:59:54 -0400 | |
---|---|---|
committer | 2016-09-09 06:59:54 -0400 | |
commit | b5a2d1bc77fdc51119f6294a79f05fd5fbaf3ef7 (patch) | |
tree | 0d8804464d712a322b46c3c9e7f7440054d1ff21 | |
parent | 402d84ff34a2fddf1b7ca4d0b0e932a9e59d2d46 (diff) |
Changing an 'assert(false)' to 'throw false', so that this always errors even in non-debug builds
-rw-r--r-- | src/lib/util/opresolv.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/util/opresolv.cpp b/src/lib/util/opresolv.cpp index 358305a9576..74595d43abd 100644 --- a/src/lib/util/opresolv.cpp +++ b/src/lib/util/opresolv.cpp @@ -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; } } |