summaryrefslogtreecommitdiffstats
path: root/logic/net
diff options
context:
space:
mode:
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;
}