From 69a85e7ef2a0a9a852f9a34d9b89b553193a8feb Mon Sep 17 00:00:00 2001 From: dismine Date: Wed, 26 Nov 2014 19:02:34 +0200 Subject: [PATCH] Better error message if .rpt of .log file could not open. --HG-- branch : develop --- src/app/core/vapplication.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/app/core/vapplication.cpp b/src/app/core/vapplication.cpp index 9748ed96d..5f0043ea4 100644 --- a/src/app/core/vapplication.cpp +++ b/src/app/core/vapplication.cpp @@ -2098,7 +2098,7 @@ void VApplication::SendReport(const QString &reportName) const } else { - content = reportFile.errorString() + "\r\n"; + content = "RPT file error:" + reportFile.errorString() + "\r\n"; } // Additional information @@ -2129,8 +2129,7 @@ void VApplication::SendReport(const QString &reportName) const reportObject.insert(QStringLiteral("description"), QJsonValue(report)); reportObject.insert(QStringLiteral("public"), QJsonValue(QString("true"))); - content.append("\r\n"); - content.append(QString("-------------------------------")+"\r\n"); + content.append(QString("\r\n-------------------------------\r\n")); content.append(QString("Log:")+"\r\n"); QFile logFile(LogPath()); @@ -2141,7 +2140,7 @@ void VApplication::SendReport(const QString &reportName) const } else { - content = logFile.errorString() + "\r\n"; + content.append("\r\n Log file error:" + logFile.errorString() + "\r\n"); } const QString contentSection = QStringLiteral("content");