We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cbed33f commit b4a17f0Copy full SHA for b4a17f0
CHANGELOG.md
@@ -11,6 +11,30 @@ removed. The [`onError` option](README.md#onerror) can be used instead to
11
customize how the errors are printed. It receives the original process error,
12
with its `name` left unchanged.
13
14
+Before:
15
+
16
+```js
17
+logProcessErrors({
18
+ log(error) {
19
+ if (error.name === 'UncaughtException') {
20
+ console.error(error)
21
+ }
22
+ },
23
+})
24
+```
25
26
+After:
27
28
29
30
+ onError(error, reason) {
31
+ if (reason === 'uncaughtException') {
32
33
34
35
36
37
38
## Filtering
39
40
The `levels` option was removed. As a consequence, the arguments of the
0 commit comments