From c51587396adc1e179eec8a84569d2d7221380d00 Mon Sep 17 00:00:00 2001 From: Pranav Saxena Date: Tue, 9 Apr 2013 13:51:33 +0530 Subject: [PATCH] CLOUDSTACK-1893:[AWS Style Health Checks] UI hangs when one tries to create health check policy on a LB rule with VR as LB service provider --- ui/scripts/ui-custom/healthCheck.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/ui/scripts/ui-custom/healthCheck.js b/ui/scripts/ui-custom/healthCheck.js index ebb7e5a8903..4b42fa7724c 100644 --- a/ui/scripts/ui-custom/healthCheck.js +++ b/ui/scripts/ui-custom/healthCheck.js @@ -164,7 +164,15 @@ } }); }, g_queryAsyncJobResultInterval); - } + }, + + error:function(json){ + + cloudStack.dialog.notice({message: _s(json.responseText)}); //Error message in the API needs to be improved + $healthCheckDialog.dialog('close'); + $('.overlay').remove(); + } + }); } }