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:
Jadon Fowler 2016-08-21 18:00:17 -07:00
parent 1b5b2c37a0
commit 333b7d247d
No known key found for this signature in database
GPG key ID: B98B526268287A29

View file

@ -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);