diff --git a/lib/toolkit.js b/lib/toolkit.js index ded406f5f..3a0058a8f 100755 --- a/lib/toolkit.js +++ b/lib/toolkit.js @@ -114,7 +114,7 @@ exports.Manager = class { this._toolkit.prototype[name] = method; } - failAction(request, failAction, err, options) { + async failAction(request, failAction, err, options) { const retain = options.retain ? err : undefined; if (failAction === 'ignore') { @@ -130,7 +130,7 @@ exports.Manager = class { throw err; } - return this.execute(failAction, request, { realm: request.route.realm, args: [options.details ?? err] }); + return await this.execute(failAction, request, { realm: request.route.realm, args: [options.details ?? err] }); } };