Skip to content

Commit

Permalink
Neha | shr-1367 | adding new line while printing error response retur…
Browse files Browse the repository at this point in the history
…ned from web client
  • Loading branch information
nehashri committed Sep 20, 2016
1 parent 2f73d39 commit b2161f5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public String handleResponse(final HttpResponse response) throws IOException {
} else if (status == HttpStatus.FORBIDDEN.value()) {
throw new ClientProtocolException("Access is denied: " + status);
} else if (status >= 400 && status < 500) {
String errorMessage = String.format("Unexpected response status: %s. Response returned is %s.\n", status, content);
String errorMessage = String.format("Unexpected response status: %s. \nResponse returned is %s.\n", status, content);
throw new ClientProtocolException(errorMessage);
} else {
throw new ClientProtocolException("Unexpected response status: " + status);
Expand Down

0 comments on commit b2161f5

Please sign in to comment.