-
Notifications
You must be signed in to change notification settings - Fork 30.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
http_client, errors: migrate to use internal/errors #14423
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -130,18 +130,22 @@ E('ERR_INVALID_CALLBACK', 'Callback must be a function'); | |
E('ERR_INVALID_CHAR', 'Invalid character in %s'); | ||
E('ERR_INVALID_CURSOR_POS', | ||
'Cannot set cursor row without setting its column'); | ||
E('ERR_INVALID_DOMAIN_NAME', 'Unable to determine the domain name'); | ||
E('ERR_INVALID_FD', '"fd" must be a positive integer: %s'); | ||
E('ERR_INVALID_FILE_URL_HOST', | ||
'File URL host must be "localhost" or empty on %s'); | ||
E('ERR_INVALID_FILE_URL_PATH', 'File URL path %s'); | ||
E('ERR_INVALID_HANDLE_TYPE', 'This handle type cannot be sent'); | ||
E('ERR_INVALID_HTTP_TOKEN', (name) => `${name} must be a valid HTTP token`); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. FYI you could just use There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. But: consistency 😉 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There is none anyway... |
||
E('ERR_INVALID_IP_ADDRESS', 'Invalid IP address: %s'); | ||
E('ERR_INVALID_OPT_VALUE', | ||
(name, value) => { | ||
return `The value "${String(value)}" is invalid for option "${name}"`; | ||
}); | ||
E('ERR_INVALID_OPT_VALUE_ENCODING', | ||
(value) => `The value "${String(value)}" is invalid for option "encoding"`); | ||
E('ERR_INVALID_PROTOCOL', (protocol, expectedProtocol) => | ||
`Protocol "${protocol}" not supported. Expected "${expectedProtocol}"`); | ||
E('ERR_INVALID_REPL_EVAL_CONFIG', | ||
'Cannot specify both "breakEvalOnSigint" and "eval" for REPL'); | ||
E('ERR_INVALID_SYNC_FORK_INPUT', | ||
|
@@ -185,6 +189,8 @@ E('ERR_TRANSFORM_ALREADY_TRANSFORMING', | |
'Calling transform done when still transforming'); | ||
E('ERR_TRANSFORM_WITH_LENGTH_0', | ||
'Calling transform done when writableState.length != 0'); | ||
E('ERR_UNESCAPED_CHARACTERS', | ||
(name) => `${name} contains unescaped characters`); | ||
E('ERR_UNKNOWN_ENCODING', 'Unknown encoding: %s'); | ||
E('ERR_UNKNOWN_SIGNAL', 'Unknown signal: %s'); | ||
E('ERR_UNKNOWN_STDIN_TYPE', 'Unknown stdin file type'); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems that I missing some titles for
errors.md
in #14212 . So I added the missing titles in this PR