Commit b3fe55a
errors: improve the description of ERR_INVALID_ARG_VALUE
- Allow user to customize why the argument is invalid
- Display the argument with util.inspect so null bytes can be
displayed properly.
Backport-PR-URL: #18916
PR-URL: #18358
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Jon Moss <me@jonathanmoss.me>1 parent 28fa906 commit b3fe55aCopy full SHA for b3fe55a
File tree
Expand file treeCollapse file tree
2 files changed
+29
-7
lines changedOpen diff view settings
Filter options
- lib/internal
- test/parallel
Expand file treeCollapse file tree
2 files changed
+29
-7
lines changedOpen diff view settings
Collapse file
+17-5Lines changed: 17 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
17 | 17 | |
18 | 18 | |
19 | 19 | |
20 | | - |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
21 | 27 | |
22 | 28 | |
23 | 29 | |
| ||
68 | 74 | |
69 | 75 | |
70 | 76 | |
| 77 | + |
71 | 78 | |
72 | 79 | |
73 | 80 | |
74 | 81 | |
75 | | - |
76 | 82 | |
77 | 83 | |
78 | 84 | |
| ||
107 | 113 | |
108 | 114 | |
109 | 115 | |
110 | | - |
| 116 | + |
111 | 117 | |
112 | 118 | |
113 | 119 | |
| ||
263 | 269 | |
264 | 270 | |
265 | 271 | |
266 | | - |
267 | | - |
| 272 | + |
| 273 | + |
| 274 | + |
| 275 | + |
| 276 | + |
| 277 | + |
| 278 | + |
| 279 | + |
268 | 280 | |
269 | 281 | |
270 | 282 | |
|
Collapse file
test/parallel/test-internal-errors.js
Copy file name to clipboardExpand all lines: test/parallel/test-internal-errors.js+12-2Lines changed: 12 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
334 | 334 | |
335 | 335 | |
336 | 336 | |
337 | | - |
| 337 | + |
338 | 338 | |
339 | 339 | |
340 | | - |
| 340 | + |
| 341 | + |
| 342 | + |
| 343 | + |
| 344 | + |
| 345 | + |
| 346 | + |
| 347 | + |
| 348 | + |
| 349 | + |
| 350 | + |
341 | 351 | |
342 | 352 | |
343 | 353 | |
|
0 commit comments