mirror of
https://github.com/ViaVersion/VIAaaS.git
synced 2024-11-22 12:05:45 +01:00
don't wrap exception, just send to pipeline
This commit is contained in:
parent
3a1c541433
commit
cada4ac41b
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user