From fe324aea4998b411c0e450654c66d54717683e6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Tue, 14 Jul 2020 10:25:00 +0200 Subject: [PATCH] Bug hunting; Detect internal error and throw exception --- lib/exprengine.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/exprengine.cpp b/lib/exprengine.cpp index 0e96a97fb..4a2d66808 100644 --- a/lib/exprengine.cpp +++ b/lib/exprengine.cpp @@ -716,6 +716,8 @@ namespace { const std::string c = line.substr(pos, end-pos); pos = end; d.constraints.push_back(c); + } else { + throw ExprEngineException(nullptr, "Internal Error: Data::parsestr(), line:" + line); } } importData->push_back(d);