mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
errors: make use of "cannot" consistent
PR-URL: https://github.com/nodejs/node/pull/31420 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
This commit is contained in:
1 parent
b1c745877b
commit
e46cfaf146
4 files changed
+4
-4
No files matched your search
+1
-1
@@ -1179,7 +1179,7 @@ To fix the error, open an issue at https://github.com/nodejs/node/issues.
|
||||
<a id="ERR_INCOMPATIBLE_OPTION_PAIR"></a>
|
||||
### `ERR_INCOMPATIBLE_OPTION_PAIR`
|
||||
|
||||
An option pair is incompatible with each other and can not be used at the same
|
||||
An option pair is incompatible with each other and cannot be used at the same
|
||||
time.
|
||||
|
||||
<a id="ERR_INPUT_TYPE_NOT_ALLOWED"></a>
|
||||
|
||||
@@ -908,7 +908,7 @@ E('ERR_HTTP_INVALID_STATUS_CODE', 'Invalid status code: %s', RangeError);
|
||||
E('ERR_HTTP_TRAILER_INVALID',
|
||||
'Trailers are invalid with this transfer encoding', Error);
|
||||
E('ERR_INCOMPATIBLE_OPTION_PAIR',
|
||||
'Option "%s" can not be used in combination with option "%s"', TypeError);
|
||||
'Option "%s" cannot be used in combination with option "%s"', TypeError);
|
||||
E('ERR_INPUT_TYPE_NOT_ALLOWED', '--input-type can only be used with string ' +
|
||||
'input via --eval, --print, or STDIN', Error);
|
||||
E('ERR_INSPECTOR_ALREADY_CONNECTED', '%s is already connected', Error);
|
||||
|
||||
@@ -86,7 +86,7 @@ check(false, false, false);
|
||||
});
|
||||
},
|
||||
{
|
||||
message: 'Option "inspectOptions.color" can not be used in ' +
|
||||
message: 'Option "inspectOptions.color" cannot be used in ' +
|
||||
'combination with option "colorMode"',
|
||||
code: 'ERR_INCOMPATIBLE_OPTION_PAIR'
|
||||
}
|
||||
|
||||
@@ -1044,7 +1044,7 @@ const sec1EncExp = (cipher) => getRegExpForPEM('EC PRIVATE KEY', cipher);
|
||||
}, {
|
||||
name: 'TypeError',
|
||||
code: 'ERR_INCOMPATIBLE_OPTION_PAIR',
|
||||
message: `Option "${opt1}" can not be used in combination with option ` +
|
||||
message: `Option "${opt1}" cannot be used in combination with option ` +
|
||||
`"${opt2}"`
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user