Trying explicitly throwing error to trigger catch clause
All checks were successful
Publish to Private NPM Registry / publish (push) Successful in 37s
All checks were successful
Publish to Private NPM Registry / publish (push) Successful in 37s
This commit is contained in:
parent
a64322c20e
commit
b71329a1be
1 changed files with 1 additions and 1 deletions
|
|
@ -84,7 +84,7 @@ export function Controller<T extends { new (...args: any[]): BaseController }>()
|
||||||
console.log('[Controller.setup.<GET request>] Next:', next);
|
console.log('[Controller.setup.<GET request>] Next:', next);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
fn.bind(controller)(req, res, next)
|
Promise.all([fn.bind(controller)(req, res, next)])
|
||||||
.catch((error) => { throw new Error(error) });
|
.catch((error) => { throw new Error(error) });
|
||||||
}
|
}
|
||||||
catch(error) {
|
catch(error) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue