Added more debugging
All checks were successful
Publish to Private NPM Registry / publish (push) Successful in 43s

This commit is contained in:
Alan Bridgeman 2025-06-24 15:08:24 -05:00
parent 975cfadbc7
commit 344a417c31

View file

@ -85,7 +85,12 @@ export function Controller<T extends { new (...args: any[]): BaseController }>()
try {
await Promise.all([fn.bind(controller)(req, res, next)])
.catch((error) => { throw new Error(error) });
.catch((error) => {
console.log('[Controller.setup.<GET request>] Error in promise:', error);
throw new Error(error);
});
console.log('[Controller.setup.<GET request>] Successfully executed GET method:', method);
}
catch(error) {
console.log('[Controller.setup.<GET request>] Error:', error);
@ -101,6 +106,8 @@ export function Controller<T extends { new (...args: any[]): BaseController }>()
return Promise.reject(error);
}
}
console.log('[Controller.setup.<GET request>] Finished processing GET request for method:', method);
});
});