Add correct error handling to VM wizard

This commit is contained in:
bfederle 2011-12-22 15:30:27 -08:00
parent ec7ace2a2c
commit 6b60341ea4
1 changed files with 2 additions and 3 deletions

View File

@ -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
}
});
}