From 38a055d2f3e6e6a84797291202e54cacc3561764 Mon Sep 17 00:00:00 2001 From: Georgy Komarov Date: Sun, 13 Dec 2020 18:54:22 +0300 Subject: [PATCH] ExprEngine: Better debug output for exceptions (#2943) --- lib/exprengine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/exprengine.cpp b/lib/exprengine.cpp index 987b1fd7c..72c0fd83c 100644 --- a/lib/exprengine.cpp +++ b/lib/exprengine.cpp @@ -2826,7 +2826,7 @@ void ExprEngine::executeFunction(const Scope *functionScope, ErrorLogger *errorL execute(functionScope->bodyStart, functionScope->bodyEnd, data); } catch (const ExprEngineException &e) { if (settings->debugBugHunting) - report << "ExprEngineException tok.line:" << e.tok->linenr() << " what:" << e.what << "\n"; + report << "ExprEngineException " << e.tok->linenr() << ":" << e.tok->column() << ": " << e.what << "\n"; trackExecution.setAbortLine(e.tok->linenr()); auto bailoutValue = std::make_shared(); for (const Token *tok = e.tok; tok != functionScope->bodyEnd; tok = tok->next()) {