Skip to content

Commit f4970f7

Browse files
committed
Update README
1 parent df4e945 commit f4970f7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,12 @@ environment variable to prevent warnings being logged twice.
6161

6262
The `exitOn` option specifies which event should trigger `process.exit(1)`:
6363

64-
- the default value is `['uncaughtException']`. Exiting is the default
64+
- the default value is `['uncaughtException']`. This is the default
6565
behavior of Node.js. It's also recommended by the
6666
[official documentation](https://nodejs.org/api/process.html#process_warning_using_uncaughtexception_correctly).
67-
- we recommend using `exitOn: ['uncaughtException', 'unhandledRejection']`
67+
- we recommend using `['uncaughtException', 'unhandledRejection']`
6868
instead since this will be the [future default behavior of Node.js](https://nodejs.org/dist/latest-v8.x/docs/api/deprecations.html#deprecations_dep0018_unhandled_promise_rejections)
69-
- to prevent any `process.exit()`, use `exitOn: []`
69+
- to prevent any `process.exit()`, use `[]`
7070

7171
`process.exit(1)` will only be fired after successfully logging the event.
7272

0 commit comments

Comments
 (0)