mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
QML UI: better diagnostics when cloud connection fails
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
05a51f7984
commit
711e5e76e8
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue