From b5a2d1bc77fdc51119f6294a79f05fd5fbaf3ef7 Mon Sep 17 00:00:00 2001 From: Nathan Woods Date: Fri, 9 Sep 2016 06:59:54 -0400 Subject: [PATCH] Changing an 'assert(false)' to 'throw false', so that this always errors even in non-debug builds --- src/lib/util/opresolv.cpp | 4 ++-- 1 file 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; } }