diff --git a/ui/scripts/instances.js b/ui/scripts/instances.js index a9356305e9c..21920556bf7 100644 --- a/ui/scripts/instances.js +++ b/ui/scripts/instances.js @@ -460,15 +460,15 @@ defaultNetwork = newNetwork.id; }, error: function(XMLHttpResponse) { - isCreateNetworkSuccessful = false; - args.response.error("Failed to create new network. Please try again."); //wait for Brian to implement + isCreateNetworkSuccessful = false; + var errorMsg = "Failed to create new network, unable to proceed to deploy VM. Error: " + parseXMLHttpResponse(XMLHttpResponse); + 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. } }); - } - if(isCreateNetworkSuccessful == false) { - alert("Failed to create new network, unable to proceed to deploy VM."); + if(isCreateNetworkSuccessful == false) { return; } //create new network ends here