Commit e72d4aa
errors: create internal connResetException
Replace various instances of errors that use code ECONNRESET with a
single centralized factory function to create the errors.
(While making changes to _tls_wrap.js, this also takes the opportunity
to make trailing commas consistent on multi-line arrays. One had a
trailing comma and one didn't. This adds a traiiling comma to the one
that didn't.)
PR-URL: #27953
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>1 parent bab9f5a commit e72d4aaCopy full SHA for e72d4aa
File tree
Expand file treeCollapse file tree
3 files changed
+19
-21
lines changedOpen diff view settings
Filter options
- lib
- internal
Expand file treeCollapse file tree
3 files changed
+19
-21
lines changedOpen diff view settings
Collapse file
+4-12Lines changed: 4 additions & 12 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
40 | 40 | |
41 | 41 | |
42 | 42 | |
| 43 | + |
43 | 44 | |
44 | 45 | |
45 | 46 | |
46 | 47 | |
47 | 48 | |
48 | 49 | |
49 | | - |
| 50 | + |
50 | 51 | |
51 | 52 | |
52 | 53 | |
| ||
337 | 338 | |
338 | 339 | |
339 | 340 | |
340 | | - |
341 | | - |
342 | | - |
343 | | - |
344 | | - |
345 | | - |
346 | | - |
347 | | - |
348 | | - |
349 | 341 | |
350 | 342 | |
351 | 343 | |
| ||
381 | 373 | |
382 | 374 | |
383 | 375 | |
384 | | - |
| 376 | + |
385 | 377 | |
386 | 378 | |
387 | 379 | |
| ||
441 | 433 | |
442 | 434 | |
443 | 435 | |
444 | | - |
| 436 | + |
445 | 437 | |
446 | 438 | |
447 | 439 | |
|
Collapse file
+7-9Lines changed: 7 additions & 9 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
44 | 44 | |
45 | 45 | |
46 | 46 | |
| 47 | + |
47 | 48 | |
48 | 49 | |
49 | 50 | |
| ||
55 | 56 | |
56 | 57 | |
57 | 58 | |
58 | | - |
| 59 | + |
59 | 60 | |
60 | 61 | |
61 | 62 | |
| ||
442 | 443 | |
443 | 444 | |
444 | 445 | |
445 | | - |
| 446 | + |
446 | 447 | |
447 | 448 | |
448 | 449 | |
| ||
908 | 909 | |
909 | 910 | |
910 | 911 | |
911 | | - |
912 | | - |
913 | | - |
| 912 | + |
914 | 913 | |
915 | 914 | |
916 | 915 | |
| ||
1353 | 1352 | |
1354 | 1353 | |
1355 | 1354 | |
1356 | | - |
1357 | | - |
1358 | | - |
1359 | | - |
| 1355 | + |
| 1356 | + |
| 1357 | + |
1360 | 1358 | |
1361 | 1359 | |
1362 | 1360 | |
|
Collapse file
+8Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
554 | 554 | |
555 | 555 | |
556 | 556 | |
| 557 | + |
| 558 | + |
| 559 | + |
| 560 | + |
| 561 | + |
| 562 | + |
| 563 | + |
557 | 564 | |
558 | 565 | |
559 | 566 | |
| ||
619 | 626 | |
620 | 627 | |
621 | 628 | |
| 629 | + |
622 | 630 | |
623 | 631 | |
624 | 632 | |
|
0 commit comments