Skip to content

Commit 7ccc266

Browse files
committed
โ˜•๏ธ handle-rejection: change 'collect' title
1 parent 81ffb1a commit 7ccc266

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

โ€Žpackages/handle-rejection/README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,11 @@ TypeError: Cannot read property 'ok' of undefined
7575
7676
6 passing (110ms)
7777
78-
โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
79-
โ”‚ Error Summary โ”‚
80-
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ
78+
โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
79+
โ”‚ Unhandled Rejection Summary โ”‚
80+
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ
8181
82-
โ—๏ธ Error 1:
82+
โ—๏ธ Rejection 1:
8383
TypeError: Cannot read property 'ok' of undefined
8484
at ok (/workspace/package/spec.js:21:11)
8585
at tryCatch (/workspace/package/node_modules/regenerator-runtime/runtime.js:45:40)

โ€Žpackages/handle-rejection/handlers/collect.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ process.on('beforeExit', () => {
99

1010
const {log, error} = console;
1111

12-
log('โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ');
13-
log('โ”‚ Error Summary โ”‚');
14-
log('โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ');
12+
log('โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ');
13+
log('โ”‚ Unhandled Rejection Summary โ”‚');
14+
log('โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ');
1515

1616
errors.forEach((e, i) => {
17-
log(`\nโ—๏ธ Error ${i + 1}:`);
17+
log(`\nโ—๏ธ Rejection ${i + 1}:`);
1818
error(e);
1919
});
2020
});

โ€Žpackages/handle-rejection/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "handle-rejection",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"description": "๐Ÿ’€ Handle unhandled rejections",
55
"keywords": [
66
"unhandledRejection",

0 commit comments

Comments
ย (0)