boolean-uk / team-dev-server

3 stars 12 forks source link

As a developer, so I can diagnose production errors, I want better debug logs #207

Closed vherus closed 2 years ago

vherus commented 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