Skip to content

Commit

Permalink
Update README.md (#2417)
Browse files Browse the repository at this point in the history
"uncaughtException" but "Rejection" is "unhandled".
So, "unhandledRejection" is more correct
  • Loading branch information
alexbs authored Feb 22, 2024
1 parent 0bde36b commit 8e99a00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -910,7 +910,7 @@ logger.exitOnError = ignoreEpipe;

### Handling Uncaught Promise Rejections with winston

With `winston`, it is possible to catch and log `uncaughtRejection` events
With `winston`, it is possible to catch and log `unhandledRejection` events
from your process. With your own logger instance you can enable this behavior
when it's created or later on in your applications lifecycle:

Expand Down

0 comments on commit 8e99a00

Please sign in to comment.