mirror of https://github.com/apache/cloudstack.git
Add correct error handling to VM wizard
This commit is contained in:
parent
ec7ace2a2c
commit
6b60341ea4
|
|
@ -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
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue