-
Notifications
You must be signed in to change notification settings - Fork 343
Commit 71e626a
author
committedPascal Hertleif
Improve verbose errors for socket addresses
Moves the point of adding error context to the net::addr module so that
we have access to the raw address input and can include it in the error
message.1 parent aa7d1c2 commit 71e626a
File tree
5 files changed
+47
-13
lines changed- src/net
- tcp
- udp
- tests
5 files changed
+47
-13
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | + | ||
1 | 2 |
| |
2 | 3 |
| |
3 | 4 |
| |
4 | 5 |
| |
5 | - | ||
6 | 6 |
| |
7 | 7 |
| |
8 | 8 |
| |
9 | + | ||
9 | 10 |
| |
10 | 11 |
| |
11 | 12 |
| |
| |||
67 | 68 |
| |
68 | 69 |
| |
69 | 70 |
| |
71 | + | ||
72 | + | ||
73 | + | ||
74 | + | ||
75 | + | ||
76 | + | ||
77 | + | ||
78 | + | ||
79 | + | ||
80 | + | ||
81 | + | ||
82 | + | ||
70 | 83 |
| |
71 | 84 |
| |
72 | 85 |
| |
| |||
110 | 123 |
| |
111 | 124 |
| |
112 | 125 |
| |
113 | - | ||
126 | + | ||
127 | + | ||
128 | + | ||
114 | 129 |
| |
115 | 130 |
| |
116 | 131 |
| |
| |||
123 | 138 |
| |
124 | 139 |
| |
125 | 140 |
| |
126 | - | ||
141 | + | ||
142 | + | ||
143 | + | ||
127 | 144 |
| |
128 | 145 |
| |
129 | 146 |
| |
| |||
195 | 212 |
| |
196 | 213 |
| |
197 | 214 |
| |
198 | - | ||
215 | + | ||
216 | + | ||
217 | + | ||
199 | 218 |
| |
200 | 219 |
| |
201 | 220 |
| |
| |||
215 | 234 |
| |
216 | 235 |
| |
217 | 236 |
| |
218 | - | ||
237 | + | ||
238 | + | ||
239 | + | ||
240 | + | ||
219 | 241 |
| |
220 | 242 |
| |
221 | 243 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 | - | ||
12 | 11 |
| |
13 | 12 |
| |
14 | 13 |
| |
| |||
78 | 77 |
| |
79 | 78 |
| |
80 | 79 |
| |
81 | - | ||
82 | - | ||
80 | + | ||
83 | 81 |
| |
84 | 82 |
| |
85 | 83 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
74 | 74 |
| |
75 | 75 |
| |
76 | 76 |
| |
77 | - | ||
78 | - | ||
77 | + | ||
79 | 78 |
| |
80 | 79 |
| |
81 | 80 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
71 | 71 |
| |
72 | 72 |
| |
73 | 73 |
| |
74 | - | ||
75 | - | ||
74 | + | ||
76 | 75 |
| |
77 | 76 |
| |
78 | 77 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | - | ||
1 | + | ||
2 | + | ||
2 | 3 |
| |
3 | 4 |
| |
4 | 5 |
| |
| |||
14 | 15 |
| |
15 | 16 |
| |
16 | 17 |
| |
18 | + | ||
19 | + | ||
20 | + | ||
21 | + | ||
22 | + | ||
23 | + | ||
24 | + | ||
25 | + | ||
26 | + | ||
27 | + | ||
28 | + | ||
29 | + | ||
30 | + | ||
31 | + | ||
32 | + |
0 commit comments