From 4d7b6c57b08a73521337ada0aece55cbd71d13ff Mon Sep 17 00:00:00 2001 From: alexbs Date: Thu, 22 Feb 2024 15:52:21 +0200 Subject: [PATCH] Update README.md "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: