Skip to content

Commit a706662

Browse files
Better info about failure http response
Change-Id: I0888e212df3ae4269750677e16dd80884e8ddf60
1 parent 4c74492 commit a706662

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

websockets/src/main/java/com/appunite/websocket/WebSocketConnection.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ private static void verifyHandshakeStatusLine(@Nonnull StatusLine statusLine)
284284
throws WrongWebsocketResponse {
285285
checkNotNull(statusLine);
286286
if (statusLine.getStatusCode() != HttpStatus.SC_SWITCHING_PROTOCOLS) {
287-
throw new WrongWebsocketResponse("Wrong http response status");
287+
throw new WrongWebsocketResponse("Wrong http response status: " + statusLine.getReasonPhrase());
288288
}
289289
}
290290

0 commit comments

Comments
 (0)