Skip to content

Commit

Permalink
Merge pull request GeyserMC#13 from phase/master
Browse files Browse the repository at this point in the history
Change Disconnect message to the Throwable's message
  • Loading branch information
Steven Smith authored Aug 22, 2016
2 parents 1b5b2c3 + 333b7d2 commit 55b4d8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/spacehq/packetlib/tcp/TcpSession.java
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) {
} else if(cause instanceof WriteTimeoutException) {
message = "Write timed out.";
} else {
message = "Internal network exception.";
message = cause.toString();
}

this.disconnect(message, cause);
Expand Down

0 comments on commit 55b4d8b

Please sign in to comment.