Don't show AuthenticationException class name

This commit is contained in:
huanghongxun 2018-10-21 11:05:27 +08:00
parent fb9418dead
commit 12d706a812

View File

@ -290,6 +290,8 @@ public class AddAccountPane extends StackPane {
return exception.getMessage();
} else if (exception instanceof AuthlibInjectorDownloadException) {
return i18n("account.failed.injector_download_failure");
} else if (exception.getClass() == AuthenticationException.class) {
return exception.getLocalizedMessage();
} else {
return exception.getClass().getName() + ": " + exception.getLocalizedMessage();
}