From 6b60341ea43ad080690e2e7165e37be07388aafa Mon Sep 17 00:00:00 2001 From: bfederle Date: Thu, 22 Dec 2011 15:30:27 -0800 Subject: [PATCH] Add correct error handling to VM wizard --- ui/scripts/instances.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ui/scripts/instances.js b/ui/scripts/instances.js index ccc6348a81e..3bf0f01dc34 100644 --- a/ui/scripts/instances.js +++ b/ui/scripts/instances.js @@ -392,7 +392,7 @@ error: function(XMLHttpResponse) { isCreateNetworkSuccessful = false; var errorMsg = "Failed to create new network, unable to proceed to deploy VM. Error: " + parseXMLHttpResponse(XMLHttpResponse); - alert(errorMsg); + //alert(errorMsg); args.response.error(errorMsg); //args.response.error(errorMsg) here doesn't show errorMsg. Waiting for Brian to fix it. use alert(errorMsg) to show errorMsg for now. } }); @@ -460,8 +460,7 @@ ); }, error: function(XMLHttpResponse) { - //args.response.error(); //wait for Brian to implement - alert("Failed to deploy VM."); + args.response.error(parseXMLHttpResponse(XMLHttpResponse)); //wait for Brian to implement } }); }