mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-11-22 18:15:39 +01:00
Print out stack traces instead of throwing them move.
This commit is contained in:
parent
fc00dd2b38
commit
3e30d989a0
@ -51,8 +51,9 @@ public class ViaDecodeHandler extends ByteToMessageDecoder {
|
||||
&& !(cause.getCause() instanceof ClosedChannelException)) {
|
||||
if (!(cause instanceof CancelException)
|
||||
&& !(cause instanceof ClosedChannelException)) {
|
||||
if (cause instanceof Exception)
|
||||
throw (Exception) cause;
|
||||
if (cause instanceof Exception){
|
||||
cause.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -79,7 +79,7 @@ public class ViaEncodeHandler extends MessageToByteEncoder {
|
||||
if (!(cause instanceof CancelException)
|
||||
&& !(cause instanceof ClosedChannelException)) {
|
||||
if (cause instanceof Exception)
|
||||
throw (Exception) cause;
|
||||
cause.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user