Skip to content

Commit

Permalink
github: log empty body on error
Browse files Browse the repository at this point in the history
  • Loading branch information
AMPivovarov committed Jan 12, 2015
1 parent 6d25d1c commit eaa86b6
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -351,9 +351,7 @@ private static void checkStatusCode(@NotNull CloseableHttpResponse response, @Nu
throw new GithubAuthenticationException("Request response: " + error.getMessage());
case HttpStatus.SC_BAD_REQUEST:
case HttpStatus.SC_UNPROCESSABLE_ENTITY:
if (body != null) {
LOG.info(body);
}
LOG.info("body message:" + body);
throw getStatusCodeException(response);
default:
throw getStatusCodeException(response);
Expand Down

0 comments on commit eaa86b6

Please sign in to comment.