mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
CLOUDSTACK-971:Error Dialog is empty
This commit is contained in:
parent
127867cc99
commit
c06218d32f
@ -208,12 +208,13 @@ function parseXMLHttpResponse(XMLHttpResponse) {
|
||||
var json = JSON.parse(XMLHttpResponse.responseText);
|
||||
if (json != null) {
|
||||
var property;
|
||||
for(property in json) {}
|
||||
for(property in json) {
|
||||
var errorObj = json[property];
|
||||
if(errorObj.errorcode == 401 && errorObj.errortext == "unable to verify user credentials and/or request signature")
|
||||
return _l('label.session.expired');
|
||||
else
|
||||
return _s(errorObj.errortext);
|
||||
}
|
||||
}
|
||||
else {
|
||||
return "";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user