Skip to content

Commit

Permalink
Fix default messages
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Oct 16, 2018
1 parent bea063a commit 9e00420
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Log all process errors on the console (or using your own logger):
- [`uncaughtException`](https://nodejs.org/api/process.html#process_event_uncaughtexception): an exception was thrown and not caught
- [`unhandledRejection`](https://nodejs.org/api/process.html#process_event_unhandledrejection): a promise was rejected and not handled
- [`rejectionHandled`](https://nodejs.org/api/process.html#process_event_rejectionhandled): a promise was rejected and handled too late
- [`multipleResolves`](https://nodejs.org/api/process.html#process_event_multipleresolves): a promise was resolved/rejected twice
- [`multipleResolves`](https://nodejs.org/api/process.html#process_event_multipleresolves): a promise was resolved/rejected multiple times
- [`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)

The message will include nice and detailed information about the error.
Expand Down
2 changes: 1 addition & 1 deletion src/message.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Promise was rejected with: ${printMultiline(promiseValue)}`
}

const rejectionHandled = function({ promiseValue }) {
return `A promise was handled after being already rejected
return `A promise was rejected and handled too late
Promise was rejected with: ${printMultiline(promiseValue)}`
}

Expand Down

0 comments on commit 9e00420

Please sign in to comment.