Skip to content

Commit b2161f5

Browse files
author
nehashri
committed
Neha | shr-1367 | adding new line while printing error response returned from web client
1 parent 2f73d39 commit b2161f5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • shrclient-omod/src/main/java/org/openmrs/module/shrclient/util

shrclient-omod/src/main/java/org/openmrs/module/shrclient/util/WebClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public String handleResponse(final HttpResponse response) throws IOException {
109109
} else if (status == HttpStatus.FORBIDDEN.value()) {
110110
throw new ClientProtocolException("Access is denied: " + status);
111111
} else if (status >= 400 && status < 500) {
112-
String errorMessage = String.format("Unexpected response status: %s. Response returned is %s.\n", status, content);
112+
String errorMessage = String.format("Unexpected response status: %s. \nResponse returned is %s.\n", status, content);
113113
throw new ClientProtocolException(errorMessage);
114114
} else {
115115
throw new ClientProtocolException("Unexpected response status: " + status);

0 commit comments

Comments
 (0)