mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2024-11-20 08:10:11 +00:00
Improve error message for invalid login details using yggdrasil, add debug log for unknown codes
This commit is contained in:
parent
7aacf93c7c
commit
0a715a7b78
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user