CS-15392: Add error handling to edit user action

Original patch by: Olga Smola <[email protected]>
Reviewed by: Brian Federle <[email protected]>


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

Branch: refs/heads/vpc
Commit: 10e70bcb9c1ff5c1aa09172dfc6be5c83fde242d
Parents: fa414bb
Author: Brian Federle <[email protected]>
Authored: Mon Jul 9 14:54:15 2012 -0700
Committer: Brian Federle <[email protected]>
Committed: Mon Jul 9 14:54:15 2012 -0700

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


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/10e70bcb/ui/scripts/accounts.js
----------------------------------------------------------------------
diff --git a/ui/scripts/accounts.js b/ui/scripts/accounts.js
index 382510e..6692f85 100644
--- a/ui/scripts/accounts.js
+++ b/ui/scripts/accounts.js
@@ -804,6 +804,9 @@
                     success: function(json) {
                       var item = json.updateuserresponse.user;
                       args.response.success({data:item});
+                    },
+                    error: function(data) {
+                      args.response.error(parseXMLHttpResponse(data));
                     }
                   });
 

Reply via email to