Trying explicitly throwing error to trigger catch clause
All checks were successful
Publish to Private NPM Registry / publish (push) Successful in 37s

This commit is contained in:
Alan Bridgeman 2025-06-24 14:18:47 -05:00
parent a64322c20e
commit b71329a1be

View file

@ -84,7 +84,7 @@ export function Controller<T extends { new (...args: any[]): BaseController }>()
console.log('[Controller.setup.<GET request>] Next:', next);
try {
fn.bind(controller)(req, res, next)
Promise.all([fn.bind(controller)(req, res, next)])
.catch((error) => { throw new Error(error) });
}
catch(error) {