mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-09-15 14:56:05 -04:00
Remove 'class ' prefix in error messages
This commit is contained in:
parent
d0b994fa9d
commit
25261c99f1
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user