From f7db8182732e8c73c1c03142f614fb0de762f0c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Tue, 24 Apr 2018 11:10:41 +0200 Subject: [PATCH] errorlogger: fix handling of {inconclusive} --- lib/errorlogger.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/errorlogger.cpp b/lib/errorlogger.cpp index 828000dbc..23014f917 100644 --- a/lib/errorlogger.cpp +++ b/lib/errorlogger.cpp @@ -483,7 +483,7 @@ std::string ErrorLogger::ErrorMessage::toString(bool verbose, const std::string const std::string::size_type pos1 = result.find("{inconclusive:"); const std::string::size_type pos2 = result.find("}", pos1+1); const std::string replaceFrom = result.substr(pos1,pos2-pos1+1); - const std::string replaceWith = result.substr(pos1+14, pos2-pos1-14); + const std::string replaceWith = _inconclusive ? result.substr(pos1+14, pos2-pos1-14) : std::string(); findAndReplace(result, replaceFrom, replaceWith); } findAndReplace(result, "{severity}", Severity::toString(_severity));