-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: handle errors in async middlewares
errors thrown in async middlewares would usually lead to unhandled promise rejections and wouldn't trigger the express error handler. this change catches exceptions in async middlewares and forwards them to the express error handler by calling `next` Co-authored-by: Björn Brauer <[email protected]> Co-authored-by: Jonas Holland <[email protected]>
- Loading branch information
1 parent
05b6096
commit c89f3b8
Showing
1 changed file
with
21 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters