fix for #186: unhandled error when amd webhook returns non-success status code

This commit is contained in:
Dave Horton
2022-11-05 10:27:00 -04:00
parent d903dbe28d
commit e5c209e269
3 changed files with 11 additions and 3 deletions

View File

@@ -146,7 +146,11 @@ class TaskConfig extends Task {
_onAmdEvent(cs, evt) {
this.logger.info({evt}, 'Config:_onAmdEvent');
const {actionHook} = this.data.amd;
this.performHook(cs, actionHook, evt);
this.performHook(cs, actionHook, evt)
.catch((err) => {
this.logger.error({err}, 'Config:_onAmdEvent - error calling actionHook');
});
}
}