diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/ui/multiplayer/MultiplayerPage.java b/HMCL/src/main/java/org/jackhuang/hmcl/ui/multiplayer/MultiplayerPage.java index d319bb4ef..de242e1a4 100644 --- a/HMCL/src/main/java/org/jackhuang/hmcl/ui/multiplayer/MultiplayerPage.java +++ b/HMCL/src/main/java/org/jackhuang/hmcl/ui/multiplayer/MultiplayerPage.java @@ -373,10 +373,11 @@ public class MultiplayerPage extends DecoratorAnimatedPage implements DecoratorP } } else if (e instanceof MultiplayerManager.CatoExitException) { LOG.info("Cato exited accidentally"); + int exitCode = ((MultiplayerManager.CatoExitException) e).getExitCode(); if (!((MultiplayerManager.CatoExitException) e).isReady()) { - return i18n("multiplayer.exit.before_ready"); + return i18n("multiplayer.exit.before_ready", exitCode); } else { - return i18n("multiplayer.exit.after_ready"); + return i18n("multiplayer.exit.after_ready", exitCode); } } else if (e instanceof ChecksumMismatchException) { return i18n("exception.artifact_malformed");