Added more debugging
All checks were successful
Publish to Private NPM Registry / publish (push) Successful in 43s
All checks were successful
Publish to Private NPM Registry / publish (push) Successful in 43s
This commit is contained in:
parent
975cfadbc7
commit
344a417c31
1 changed files with 8 additions and 1 deletions
|
|
@ -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);
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue