Closed vherus closed 2 years ago
Add an error handling middleware
We use async functions so will ned the async handler package: https://www.npmjs.com/package/express-async-errors
Make sure the app throws errors so the middleware can handle it
Add an error handling middleware
We use async functions so will ned the async handler package: https://www.npmjs.com/package/express-async-errors
Make sure the app throws errors so the middleware can handle it