diff --git a/Framework/Kernel/src/ErrorReporter.cpp b/Framework/Kernel/src/ErrorReporter.cpp index 1f7703729b94..5d5abc1f00c2 100644 --- a/Framework/Kernel/src/ErrorReporter.cpp +++ b/Framework/Kernel/src/ErrorReporter.cpp @@ -99,15 +99,14 @@ std::string ErrorReporter::generateErrorMessage() { message["exitCode"] = m_exitCode; - if(m_share){ + if (m_share) { message["email"] = m_email; message["name"] = m_name; - } - else { + } else { message["email"] = ""; message["name"] = ""; } - + ::Json::FastWriter writer; return writer.write(message); }