Skip to content

Commit c7b60ff

Browse files
committed
Update README
1 parent b167c1e commit c7b60ff

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ import modernErrorsProcess from 'modern-errors-process'
4343
export const AnyError = modernErrors([modernErrorsProcess])
4444
```
4545

46-
Initializing process error handler.
46+
Initializing the process error handler.
4747

4848
```js
4949
AnyError.logProcess()
@@ -97,17 +97,17 @@ restore()
9797

9898
_Type_: `object`
9999

100-
[Options](#options) must be passed either to
100+
Options must be passed either to
101101
[`modernErrors()`](https://github.com/ehmicky/modern-errors#modernerrorsplugins-options).
102102

103103
```js
104-
export const AnyError = modernErrors(plugins, { process: { ...options } })
104+
export const AnyError = modernErrors(plugins, { process: options })
105105
```
106106

107107
Or to [`AnyError.logProcess()`](#anyerrorlogprocess).
108108

109109
```js
110-
AnyError.logProcess(...args, { ...options })
110+
AnyError.logProcess(...args, options)
111111
```
112112

113113
### exit

0 commit comments

Comments
 (0)