mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-09-12 13:26:53 -04:00
Don't show AuthenticationException class name
This commit is contained in:
parent
fb9418dead
commit
12d706a812
@ -290,6 +290,8 @@ public class AddAccountPane extends StackPane {
|
|||||||
return exception.getMessage();
|
return exception.getMessage();
|
||||||
} else if (exception instanceof AuthlibInjectorDownloadException) {
|
} else if (exception instanceof AuthlibInjectorDownloadException) {
|
||||||
return i18n("account.failed.injector_download_failure");
|
return i18n("account.failed.injector_download_failure");
|
||||||
|
} else if (exception.getClass() == AuthenticationException.class) {
|
||||||
|
return exception.getLocalizedMessage();
|
||||||
} else {
|
} else {
|
||||||
return exception.getClass().getName() + ": " + exception.getLocalizedMessage();
|
return exception.getClass().getName() + ": " + exception.getLocalizedMessage();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user