Remove 'class ' prefix in error messages

This commit is contained in:
yushijinhun
2018-07-07 17:50:49 +08:00
parent d0b994fa9d
commit 25261c99f1
2 changed files with 2 additions and 2 deletions

View File

@@ -269,7 +269,7 @@ public class AddAccountPane extends StackPane {
} }
return exception.getMessage(); return exception.getMessage();
} else { } else {
return exception.getClass() + ": " + exception.getLocalizedMessage(); return exception.getClass().getName() + ": " + exception.getLocalizedMessage();
} }
} }

View File

@@ -79,7 +79,7 @@ public class AddAuthlibInjectorServerDialog extends JFXDialog {
if (exception instanceof IOException) { if (exception instanceof IOException) {
return i18n("account.failed.connect_injector_server"); return i18n("account.failed.connect_injector_server");
} else { } else {
return exception.getClass() + ": " + exception.getLocalizedMessage(); return exception.getClass().getName() + ": " + exception.getLocalizedMessage();
} }
} }