From e36ff852cdf54fb5bfe6ef62bd5829ae9dd6bca2 Mon Sep 17 00:00:00 2001 From: Dmitry-Me Date: Thu, 26 Mar 2015 15:26:08 +0300 Subject: [PATCH] Don't call abort() in the middle of C++ code --- lib/token.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/token.cpp b/lib/token.cpp index be0d20cf6..effae9144 100644 --- a/lib/token.cpp +++ b/lib/token.cpp @@ -446,7 +446,7 @@ static int multiComparePercent(const Token *tok, const char*& haystack, bool emp break; default: //unknown %cmd%, abort - std::abort(); + throw InternalError( tok, "Unexpected command" ); } if (*haystack == '|')