summaryrefslogtreecommitdiffstats
path: root/logic/net
diff options
context:
space:
mode:
authorSky <git@bunnies.cc>2013-10-15 03:11:10 +0100
committerSky <git@bunnies.cc>2013-10-15 03:11:10 +0100
commit0a715a7b781410e4642c1585ad071ae5ba916b9d (patch)
tree5f52a86cdc9faa04deea1dcb1fb7c8cf7f5201d6 /logic/net
parent7aacf93c7cbfdb92c869bb0ea86e6afa69bfa421 (diff)
downloadMultiMC-0a715a7b781410e4642c1585ad071ae5ba916b9d.tar
MultiMC-0a715a7b781410e4642c1585ad071ae5ba916b9d.tar.gz
MultiMC-0a715a7b781410e4642c1585ad071ae5ba916b9d.tar.lz
MultiMC-0a715a7b781410e4642c1585ad071ae5ba916b9d.tar.xz
MultiMC-0a715a7b781410e4642c1585ad071ae5ba916b9d.zip
Improve error message for invalid login details using yggdrasil, add debug log for unknown codes
Diffstat (limited to 'logic/net')
-rw-r--r--logic/net/LoginTask.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/logic/net/LoginTask.cpp b/logic/net/LoginTask.cpp
index 90aac74a..62d6331f 100644
--- a/logic/net/LoginTask.cpp
+++ b/logic/net/LoginTask.cpp
@@ -201,7 +201,13 @@ void LoginTask::processYggdrasilReply(QNetworkReply *reply)
emitFailed(tr("Login canceled."));
break;
+ // Equivalent to an HTTP 403
+ case QNetworkReply::ContentOperationNotPermittedError:
+ emitFailed(tr("Invalid username or password."));
+ break;
+
default:
+ QLOG_DEBUG() << "Login failed with QNetworkReply code:" << reply->error();
emitFailed(tr("Login failed: %1").arg(reply->errorString()));
break;
}