Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-11-20 06:50:08 +01:00
Print out stack traces instead of throwing them move.
Dieser Commit ist enthalten in:
Ursprung
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren