diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2018-06-28 04:44:50 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-06-28 05:39:10 -0700 |
commit | 1161782f3b8b6f0cebe62626e3c065f74b85bc07 (patch) | |
tree | c43ebb97e14be55ea8e4cbd05ecab000ecf519f9 | |
parent | b492df6ffcceaff170d765c28b6942ac66f759ad (diff) | |
download | subsurface-1161782f3b8b6f0cebe62626e3c065f74b85bc07.tar.gz |
QML UI: provide information why logfile couldn't be written
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | mobile-widgets/qmlmanager.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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 |