Skip to content
This repository has been archived by the owner on Aug 12, 2022. It is now read-only.

Commit

Permalink
Catch ASG error
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaoqin-github committed Sep 27, 2019
1 parent 49db0cb commit f597607
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/waf/src/controllers/wafpolicy.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]) {
Expand Down

0 comments on commit f597607

Please sign in to comment.