mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Improve logging message
This commit is contained in:
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…
Reference in New Issue
Block a user