You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by al...@apache.org on 2012/08/12 22:20:33 UTC

[19/50] [abbrv] git commit: CS-15939: cloudstack 3.0 UI - VPC - create VPN connection - add error handling.

CS-15939: cloudstack 3.0 UI - VPC - create VPN connection - add error handling.


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

Branch: refs/heads/master
Commit: 0384259298affed2a540d0261806a81bc0c9c91a
Parents: a96c901
Author: Jessica Wang <je...@citrix.com>
Authored: Fri Aug 10 10:20:44 2012 -0700
Committer: Jessica Wang <je...@citrix.com>
Committed: Fri Aug 10 10:29:03 2012 -0700

----------------------------------------------------------------------
 ui/scripts/vpc.js |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/03842592/ui/scripts/vpc.js
----------------------------------------------------------------------
diff --git a/ui/scripts/vpc.js b/ui/scripts/vpc.js
index d34025a..a9f01ab 100644
--- a/ui/scripts/vpc.js
+++ b/ui/scripts/vpc.js
@@ -1006,7 +1006,7 @@
                       s2scustomergatewayid: args.data.vpncustomergatewayid
                     },
                     success: function(json) {										  
-                      var jid = json.createvpnconnectionresponse.jobid;
+                      var jid = json.createvpnconnectionresponse.jobid;											
                       args.response.success(
                         {_custom:
                           {
@@ -1017,7 +1017,10 @@
                           }
                         }
                       );
-                    }
+                    },										
+										error: function(xmlHttpResponse) {
+											args.response.error(parseXMLHttpResponse(xmlHttpResponse));
+										}
                   });
                 },
                 notification: {