Remove 'class ' prefix in error messages

This commit is contained in:
yushijinhun 2018-07-07 17:50:49 +08:00
parent d0b994fa9d
commit 25261c99f1
No known key found for this signature in database
GPG Key ID: 5BC167F73EA558E4
2 changed files with 2 additions and 2 deletions

View File

@ -269,7 +269,7 @@ public class AddAccountPane extends StackPane {
}
return exception.getMessage();
} 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) {
return i18n("account.failed.connect_injector_server");
} else {
return exception.getClass() + ": " + exception.getLocalizedMessage();
return exception.getClass().getName() + ": " + exception.getLocalizedMessage();
}
}