NOISSUE fix some error mappings for Mojang accounts

This commit is contained in:
Petr Mrázek 2021-12-05 03:48:07 +01:00
parent d37003b1de
commit c8ca6acc15
2 changed files with 3 additions and 6 deletions

View File

@ -175,6 +175,8 @@ void LaunchController::login() {
} }
return; return;
} }
case AccountState::Errored:
// This means some sort of soft error that we can fix with a refresh ... so let's refresh.
case AccountState::Unchecked: { case AccountState::Unchecked: {
m_accountToUse->refresh(); m_accountToUse->refresh();
// NOTE: fallthrough intentional // NOTE: fallthrough intentional
@ -196,11 +198,6 @@ void LaunchController::login() {
return; return;
} }
*/ */
case AccountState::Errored: {
// This means some sort of soft error that we can fix with a refresh ... so let's refresh.
// TODO: implement
return;
}
case AccountState::Expired: { case AccountState::Expired: {
auto errorString = tr("The account has expired and needs to be logged into manually again."); auto errorString = tr("The account has expired and needs to be logged into manually again.");
QMessageBox::warning( QMessageBox::warning(

View File

@ -47,5 +47,5 @@ void YggdrasilStep::onAuthFailed() {
state = AccountTaskState::STATE_OFFLINE; state = AccountTaskState::STATE_OFFLINE;
errorMessage = tr("Mojang user authentication ended with a network error."); errorMessage = tr("Mojang user authentication ended with a network error.");
} }
emit finished(AccountTaskState::STATE_OFFLINE, errorMessage); emit finished(state, errorMessage);
} }