CLOUDSTACK-971:Error Dialog is empty

Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/c06218d3
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/c06218d3
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/c06218d3

Branch: refs/heads/cloud-agent-with-openvswitch
Commit: c06218d32f3e4b20ec86303639af847cb911ec39
Parents: 127867c
Author: Pranav Saxena <[email protected]>
Authored: Mon Jan 14 16:49:42 2013 +0530
Committer: Pranav Saxena <[email protected]>
Committed: Mon Jan 14 16:49:42 2013 +0530

----------------------------------------------------------------------
 ui/scripts/sharedFunctions.js |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/c06218d3/ui/scripts/sharedFunctions.js
----------------------------------------------------------------------
diff --git a/ui/scripts/sharedFunctions.js b/ui/scripts/sharedFunctions.js
index eb78ad1..51c4fdb 100644
--- a/ui/scripts/sharedFunctions.js
+++ b/ui/scripts/sharedFunctions.js
@@ -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 "";

Reply via email to