From 65041cf0ff6358320e9b5cf7d6dff46dcc7a1d8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Fri, 24 Dec 2010 11:13:57 +0100 Subject: [PATCH] Fixed #2349 (Empty 'msg' in output when using '-j') --- lib/errorlogger.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/errorlogger.cpp b/lib/errorlogger.cpp index 364b68cbf..0560c5801 100644 --- a/lib/errorlogger.cpp +++ b/lib/errorlogger.cpp @@ -58,6 +58,7 @@ std::string ErrorLogger::ErrorMessage::serialize() const oss << _id.length() << " " << _id; oss << Severity::toString(_severity).length() << " " << Severity::toString(_severity); oss << _shortMessage.length() << " " << _shortMessage; + oss << _verboseMessage.length() << " " << _verboseMessage; oss << _callStack.size() << " "; for (std::list::const_iterator tok = _callStack.begin(); tok != _callStack.end(); ++tok) @@ -66,6 +67,7 @@ std::string ErrorLogger::ErrorMessage::serialize() const smallStream << (*tok).line << ":" << (*tok).getfile(); oss << smallStream.str().length() << " " << smallStream.str(); } + return oss.str(); } @@ -89,13 +91,14 @@ bool ErrorLogger::ErrorMessage::deserialize(const std::string &data) } results.push_back(temp); - if (results.size() == 3) + if (results.size() == 4) break; } _id = results[0]; _severity = Severity::fromString(results[1]); _shortMessage = results[2]; + _verboseMessage = results[3]; unsigned int stackSize = 0; if (!(iss >> stackSize))