feat: show more human-readable error message when no Java Edition profile existing in MicrosoftAccount.

This commit is contained in:
huanghongxun
2021-09-05 19:50:48 +08:00
parent 47540e7f91
commit 21e28ab038
2 changed files with 6 additions and 1 deletions

View File

@@ -365,6 +365,8 @@ public final class Accounts {
} else {
return i18n("account.methods.microsoft.error.unknown", errorCode);
}
} else if (exception instanceof MicrosoftService.NoMinecraftJavaEditionProfileException) {
return i18n("account.methods.microsoft.error.no_character");
} else if (exception.getClass() == AuthenticationException.class) {
return exception.getLocalizedMessage();
} else {