Skip to content

Commit 5b49ac2

Browse files
author
Cristoph Adam Sugianto
committed
adding unhandled rejection handler, update readme & example
1 parent 8cc144c commit 5b49ac2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ app.use(errorHandler);
8585

8686
**How to handle UnhandledRejection for Async Function in Express**
8787
```javascript
88+
const {
89+
handlers: { createHandler }
90+
} = require('custom-error-exceptions');
91+
8892
const getName = async (req, res) => {
8993
/*some asynchronous logic here
9094
example :

0 commit comments

Comments
 (0)