From f59760782b50d1c67de9da6d67e4b81fc6187c0a Mon Sep 17 00:00:00 2001 From: Qin Zhao Date: Fri, 27 Sep 2019 18:10:54 +0800 Subject: [PATCH] Catch ASG error --- app/waf/src/controllers/wafpolicy.controller.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/waf/src/controllers/wafpolicy.controller.ts b/app/waf/src/controllers/wafpolicy.controller.ts index fd1533d48..928f4c358 100644 --- a/app/waf/src/controllers/wafpolicy.controller.ts +++ b/app/waf/src/controllers/wafpolicy.controller.ts @@ -227,9 +227,7 @@ export class WafpolicyController extends BaseController { wafpolicy.id, ); } catch (error) { - throw new HttpErrors.unprocessableEntity( - 'check wafpolicy from asg service failed', - ); + throw new HttpErrors.UnprocessableEntity(`ASG error: ${error.message}`); } if (!resp || !resp[0]) {