Improve logging message

temp
Mohamed Rashd 3 years ago
parent 695f4c4a18
commit a98e1e4b24

@ -93,7 +93,7 @@ public class WSO2IAMSPApplicationService implements ISServiceProviderApplication
* @return constructed error message
*/
private String constructErrorMessage(HttpResponse response) {
String msg = "Error occurred while calling SP Applications API";
String msg = "Error occurred while calling SP Applications API. Response status: " + response.getStatusLine().getStatusCode();
if (response.getStatusLine().getStatusCode() == HttpStatus.SC_UNAUTHORIZED) {
msg += ". Make sure provided identity Server credentials are valid";
}

Loading…
Cancel
Save