summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib
diff options
context:
space:
mode:
author Nathan Woods <npwoods@mess.org>2016-09-09 06:59:54 -0400
committer Nathan Woods <npwoods@mess.org>2016-09-09 06:59:54 -0400
commitb5a2d1bc77fdc51119f6294a79f05fd5fbaf3ef7 (patch)
tree0d8804464d712a322b46c3c9e7f7440054d1ff21 /src/lib
parent402d84ff34a2fddf1b7ca4d0b0e932a9e59d2d46 (diff)
Changing an 'assert(false)' to 'throw false', so that this always errors even in non-debug builds
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/util/opresolv.cpp4
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;
}
}