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 == '|')