Skip to content

Commit

Permalink
Provide more information in the log for the authentication failed case
Browse files Browse the repository at this point in the history
Signed-off-by: Yannic Klem <yannic.klem@bosch.io>
  • Loading branch information
Yannic92 committed Oct 2, 2020
1 parent f853baf commit 6a6c500
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,8 @@ private Throwable mapConnectError(final Throwable e) {
return AuthenticationException.forbidden(sessionId, cause);
default:
return AuthenticationException.withStatus(sessionId, cause, statusLine.getStatusCode(),
statusLine.getReasonPhrase());
statusLine.getReasonPhrase() + ": " +
new String(((OpeningHandshakeException) cause).getBody()));
}
}
} else if (((WebSocketException) cause).getError() == WebSocketError.SOCKET_CONNECT_ERROR &&
Expand Down

0 comments on commit 6a6c500

Please sign in to comment.