mirror of
https://github.com/GeyserMC/MCProtocolLib.git
synced 2024-12-04 21:01:02 -05:00
Change Disconnect message to the Throwable's message
Throwable#toString() returns a description of the Throwable that includes the name of the class appended to Throwable#getLocalizedMessage(), which can be used for debugging purposes.
This commit is contained in:
parent
1b5b2c37a0
commit
333b7d247d
1 changed files with 1 additions and 1 deletions
|
@ -352,7 +352,7 @@ public abstract class TcpSession extends SimpleChannelInboundHandler<Packet> imp
|
|||
} else if(cause instanceof WriteTimeoutException) {
|
||||
message = "Write timed out.";
|
||||
} else {
|
||||
message = "Internal network exception.";
|
||||
message = cause.toString();
|
||||
}
|
||||
|
||||
this.disconnect(message, cause);
|
||||
|
|
Loading…
Reference in a new issue