From 8e99a00c38e8099f0b5a41f54a5d3f2ef9aa002a Mon Sep 17 00:00:00 2001 From: alexbs Date: Thu, 22 Feb 2024 19:12:40 +0200 Subject: [PATCH] Update README.md (#2417) "uncaughtException" but "Rejection" is "unhandled". So, "unhandledRejection" is more correct --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 585c46f99..7ee941fd8 100644 --- a/README.md +++ b/README.md @@ -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: