Commit baac81d
net: add local address/port for better errors
Adds localAddress and localPort to req so we have better error messages.
Also fixes a case where ex is used before it is declared.
PR-URL: #3946
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Evan Lucas <evanlucas@me.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>1 parent c584c3e commit baac81dCopy full SHA for baac81d
File tree
Expand file treeCollapse file tree
2 files changed
+22
-3
lines changedOpen diff view settings
Filter options
- lib
- test/parallel
Expand file treeCollapse file tree
2 files changed
+22
-3
lines changedOpen diff view settings
Collapse file
+7-3Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
817 | 817 | |
818 | 818 | |
819 | 819 | |
| 820 | + |
| 821 | + |
820 | 822 | |
821 | 823 | |
822 | 824 | |
| ||
1056 | 1058 | |
1057 | 1059 | |
1058 | 1060 | |
1059 | | - |
1060 | | - |
1061 | | - |
| 1061 | + |
1062 | 1062 | |
1063 | 1063 | |
1064 | 1064 | |
1065 | 1065 | |
1066 | 1066 | |
1067 | 1067 | |
| 1068 | + |
| 1069 | + |
| 1070 | + |
| 1071 | + |
1068 | 1072 | |
1069 | 1073 | |
1070 | 1074 | |
|
Collapse file
test/parallel/test-net-connect-local-error.js
Copy file name to clipboard+15Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
0 commit comments