From 1161782f3b8b6f0cebe62626e3c065f74b85bc07 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 28 Jun 2018 04:44:50 -0700 Subject: QML UI: provide information why logfile couldn't be written Signed-off-by: Dirk Hohndel --- mobile-widgets/qmlmanager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp index b6ba205c2..3ac55c4f8 100644 --- a/mobile-widgets/qmlmanager.cpp +++ b/mobile-widgets/qmlmanager.cpp @@ -164,7 +164,8 @@ QMLManager::QMLManager() : m_locationServiceEnabled(false), if (!appLogFile.open(QIODevice::ReadWrite|QIODevice::Truncate)) { appLogFileOpen = false; appendTextToLog("Failed to open logfile " + appLogFileName - + " at " + QDateTime::currentDateTime().toString()); + + " at " + QDateTime::currentDateTime().toString() + + " error: " + appLogFile.errorString()); } else { appLogFileOpen = true; appendTextToLog("Successfully opened logfile " + appLogFileName -- cgit v1.2.3-70-g09d2