From cada4ac41b01c0f7f43d5f3908b568f43c8d1719 Mon Sep 17 00:00:00 2001 From: creeper123123321 <7974274+creeper123123321@users.noreply.github.com> Date: Thu, 1 Apr 2021 08:51:25 -0300 Subject: [PATCH] don't wrap exception, just send to pipeline --- .../creeper123123321/viaaas/handler/state/LoginState.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/com/github/creeper123123321/viaaas/handler/state/LoginState.kt b/src/main/kotlin/com/github/creeper123123321/viaaas/handler/state/LoginState.kt index ad6d371..11ad10b 100644 --- a/src/main/kotlin/com/github/creeper123123321/viaaas/handler/state/LoginState.kt +++ b/src/main/kotlin/com/github/creeper123123321/viaaas/handler/state/LoginState.kt @@ -112,7 +112,7 @@ class LoginState : MinecraftConnectionState { ).whenCompleteAsync({ _, throwable -> if (throwable != null) { frontHandler.data.frontChannel.pipeline() - .fireExceptionCaught(RuntimeException("Online mode error: $throwable", throwable)) + .fireExceptionCaught(throwable) return@whenCompleteAsync } @@ -127,7 +127,7 @@ class LoginState : MinecraftConnectionState { }, backChan.eventLoop()) } catch (e: Exception) { frontHandler.data.frontChannel.pipeline() - .fireExceptionCaught(RuntimeException("Online mode error: $e", e)) + .fireExceptionCaught(e) } } } @@ -201,4 +201,4 @@ class LoginState : MinecraftConnectionState { packet.msg = Gson().toJson("[VIAaaS] §c$msg") writeFlushClose(handler.data.frontChannel, packet) } -} \ No newline at end of file +}