From b71329a1be46d86cb389056e7db208f66000a113 Mon Sep 17 00:00:00 2001 From: Alan Bridgeman Date: Tue, 24 Jun 2025 14:18:47 -0500 Subject: [PATCH] Trying explicitly throwing error to trigger catch clause --- src/decorators/Controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/decorators/Controller.ts b/src/decorators/Controller.ts index 9e30616..4b41beb 100644 --- a/src/decorators/Controller.ts +++ b/src/decorators/Controller.ts @@ -84,7 +84,7 @@ export function Controller() console.log('[Controller.setup.] 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) {