Skip to content

Commit e46cfaf

Browse files
tniessencodebytere
authored andcommitted
errors: make use of "cannot" consistent
PR-URL: #31420 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Sam Roberts <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Michael Dawson <[email protected]>
1 parent b1c7458 commit e46cfaf

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

doc/api/errors.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1179,7 +1179,7 @@ To fix the error, open an issue at https://github.com/nodejs/node/issues.
11791179
<a id="ERR_INCOMPATIBLE_OPTION_PAIR"></a>
11801180
### `ERR_INCOMPATIBLE_OPTION_PAIR`
11811181

1182-
An option pair is incompatible with each other and can not be used at the same
1182+
An option pair is incompatible with each other and cannot be used at the same
11831183
time.
11841184

11851185
<a id="ERR_INPUT_TYPE_NOT_ALLOWED"></a>

lib/internal/errors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -908,7 +908,7 @@ E('ERR_HTTP_INVALID_STATUS_CODE', 'Invalid status code: %s', RangeError);
908908
E('ERR_HTTP_TRAILER_INVALID',
909909
'Trailers are invalid with this transfer encoding', Error);
910910
E('ERR_INCOMPATIBLE_OPTION_PAIR',
911-
'Option "%s" can not be used in combination with option "%s"', TypeError);
911+
'Option "%s" cannot be used in combination with option "%s"', TypeError);
912912
E('ERR_INPUT_TYPE_NOT_ALLOWED', '--input-type can only be used with string ' +
913913
'input via --eval, --print, or STDIN', Error);
914914
E('ERR_INSPECTOR_ALREADY_CONNECTED', '%s is already connected', Error);

test/parallel/test-console-tty-colors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ check(false, false, false);
8686
});
8787
},
8888
{
89-
message: 'Option "inspectOptions.color" can not be used in ' +
89+
message: 'Option "inspectOptions.color" cannot be used in ' +
9090
'combination with option "colorMode"',
9191
code: 'ERR_INCOMPATIBLE_OPTION_PAIR'
9292
}

test/parallel/test-crypto-keygen.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1044,7 +1044,7 @@ const sec1EncExp = (cipher) => getRegExpForPEM('EC PRIVATE KEY', cipher);
10441044
}, {
10451045
name: 'TypeError',
10461046
code: 'ERR_INCOMPATIBLE_OPTION_PAIR',
1047-
message: `Option "${opt1}" can not be used in combination with option ` +
1047+
message: `Option "${opt1}" cannot be used in combination with option ` +
10481048
`"${opt2}"`
10491049
});
10501050
}

0 commit comments

Comments
 (0)