Skip to content

Commit b5a97a5

Browse files
committed
Issue-1160 Clean up error message in WebSocketImpl if error had been caught
1 parent 7780dbe commit b5a97a5

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.idea/.gitignore

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/java/org/java_websocket/WebSocketImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ private void decodeFrames(ByteBuffer socketBuffer) {
417417
log.error("Closing web socket due to an error during frame processing");
418418
Exception exception = new Exception(e);
419419
wsl.onWebsocketError(this, exception);
420-
String errorMessage = "Got error " + e.getClass().getName() + " on the server side";
420+
String errorMessage = "Got error " + e.getClass().getName();
421421
close(CloseFrame.UNEXPECTED_CONDITION, errorMessage);
422422
}
423423
}

0 commit comments

Comments
 (0)