diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2016-04-30 10:15:15 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-04-30 10:15:15 -0700 |
commit | 711e5e76e8dfa5ed991d83c78f8e9ce51318e016 (patch) | |
tree | 39b433b7acec8bbe1a748a4bf550cb2920438ff5 /mobile-widgets/qmlmanager.cpp | |
parent | 05a51f7984e62a8eaf02a8b8dc7269325fb26d9b (diff) | |
download | subsurface-711e5e76e8dfa5ed991d83c78f8e9ce51318e016.tar.gz |
QML UI: better diagnostics when cloud connection fails
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qmlmanager.cpp')
-rw-r--r-- | mobile-widgets/qmlmanager.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp index 9b3471a7a..0989a109c 100644 --- a/mobile-widgets/qmlmanager.cpp +++ b/mobile-widgets/qmlmanager.cpp @@ -359,7 +359,9 @@ void QMLManager::handleError(QNetworkReply::NetworkError nError) void QMLManager::retrieveUserid() { if (reply->attribute(QNetworkRequest::HttpStatusCodeAttribute) != 302) { - appendTextToLog(QStringLiteral("Cloud storage connection not working correctly: %1").arg(QString(reply->readAll()))); + appendTextToLog(QStringLiteral("Cloud storage connection not working correctly: (%1) %2") + .arg(reply->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt()) + .arg(QString(reply->readAll()))); setStartPageText(RED_FONT + tr("Cannot connect to cloud storage") + END_FONT); revertToNoCloudIfNeeded(); return; |