Skip to content

Commit

Permalink
chore(expressLoader): add logging on error (#583)
Browse files Browse the repository at this point in the history
  • Loading branch information
guidojw authored Oct 13, 2024
1 parent 9958787 commit b5474e0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/loaders/express.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export default function init (container: Container): Application {
}

app.use((err: any, _req: Request, res: Response, _next: NextFunction) => {
console.log(err)
errorMiddleware.sendError(
res,
err.response?.status ?? err.statusCode ?? 500,
Expand Down

0 comments on commit b5474e0

Please sign in to comment.