CLOUDSTACK-971:Error Dialog is empty

This commit is contained in:
Pranav Saxena 2013-01-14 16:49:42 +05:30
parent 127867cc99
commit c06218d32f

View File

@ -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 "";