Skip to content

Commit 9e00420

Browse files
committed
Fix default messages
1 parent bea063a commit 9e00420

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Log all process errors on the console (or using your own logger):
55
- [`uncaughtException`](https://nodejs.org/api/process.html#process_event_uncaughtexception): an exception was thrown and not caught
66
- [`unhandledRejection`](https://nodejs.org/api/process.html#process_event_unhandledrejection): a promise was rejected and not handled
77
- [`rejectionHandled`](https://nodejs.org/api/process.html#process_event_rejectionhandled): a promise was rejected and handled too late
8-
- [`multipleResolves`](https://nodejs.org/api/process.html#process_event_multipleresolves): a promise was resolved/rejected twice
8+
- [`multipleResolves`](https://nodejs.org/api/process.html#process_event_multipleresolves): a promise was resolved/rejected multiple times
99
- [`warning`](https://nodejs.org/api/process.html#process_event_warning): a warning was produced using [`process.emitWarning()`](https://nodejs.org/api/process.html#process_process_emitwarning_warning_options)
1010

1111
The message will include nice and detailed information about the error.

src/message.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Promise was rejected with: ${printMultiline(promiseValue)}`
5353
}
5454

5555
const rejectionHandled = function({ promiseValue }) {
56-
return `A promise was handled after being already rejected
56+
return `A promise was rejected and handled too late
5757
Promise was rejected with: ${printMultiline(promiseValue)}`
5858
}
5959

0 commit comments

Comments
 (0)