GeezerVison is showing github.com — errors: backport ERR_INVALID_PROTOCOL to v8.x · nodejs/node@da3265a
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: doc/api/errors.md +5Lines changed: 5 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -835,6 +835,11 @@ communication channel to a child process. See [`subprocess.send()`] and |
835 | 835 | Used generically to identify when an invalid or unexpected value has been |
836 | 836 | passed in an options object. |
837 | 837 |
|
| 838 | +<a id="ERR_INVALID_PROTOCOL"></a> |
| 839 | +### ERR_INVALID_PROTOCOL |
| 840 | + |
| 841 | +Used when an invalid `options.protocol` is passed. |
| 842 | + |
838 | 843 | <a id="ERR_INVALID_SYNC_FORK_INPUT"></a> |
839 | 844 | ### ERR_INVALID_SYNC_FORK_INPUT |
840 | 845 |
|
|
Collapse file
Copy file name to clipboardExpand all lines: lib/internal/errors.js +2Lines changed: 2 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -196,6 +196,8 @@ E('ERR_INVALID_OPT_VALUE', |
196 | 196 | return `The value "${String(value)}" is invalid for option "${name}"`; |
197 | 197 | }); |
198 | 198 | E('ERR_INVALID_PERFORMANCE_MARK', 'The "%s" performance mark has not been set'); |
| 199 | +E('ERR_INVALID_PROTOCOL', (protocol, expectedProtocol) => |
| 200 | + `Protocol "${protocol}" not supported. Expected "${expectedProtocol}"`); |
199 | 201 | E('ERR_INVALID_SYNC_FORK_INPUT', |
200 | 202 | (value) => { |
201 | 203 | return 'Asynchronous forks do not support Buffer, Uint8Array or string' + |
|