summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2013-10-15 20:17:51 +0200
committerPetr Mrázek <peterix@gmail.com>2013-10-15 20:17:51 +0200
commitee1be22055a8eb45521620abcfb7f4ac9ce2ff29 (patch)
treec2bdc20beff8ff6df0800cfb138ebdbd55fec28d
parentf5733f201bb3c088c8990fbac63cded2a5761586 (diff)
parent0a715a7b781410e4642c1585ad071ae5ba916b9d (diff)
downloadMultiMC-ee1be22055a8eb45521620abcfb7f4ac9ce2ff29.tar
MultiMC-ee1be22055a8eb45521620abcfb7f4ac9ce2ff29.tar.gz
MultiMC-ee1be22055a8eb45521620abcfb7f4ac9ce2ff29.tar.lz
MultiMC-ee1be22055a8eb45521620abcfb7f4ac9ce2ff29.tar.xz
MultiMC-ee1be22055a8eb45521620abcfb7f4ac9ce2ff29.zip
Merge branch 'develop' of github.com:MultiMC/MultiMC5 into develop
-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;
}