From 0384259298affed2a540d0261806a81bc0c9c91a Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Fri, 10 Aug 2012 10:20:44 -0700 Subject: [PATCH] CS-15939: cloudstack 3.0 UI - VPC - create VPN connection - add error handling. --- ui/scripts/vpc.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ui/scripts/vpc.js b/ui/scripts/vpc.js index d34025a3ab2..a9f01ab3b9a 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: {