Skip to content

Commit b1517a4

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 40480e0 commit b1517a4

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Diff for: doc/api/errors.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1166,7 +1166,7 @@ To fix the error, open an issue at https://github.com/nodejs/node/issues.
11661166
<a id="ERR_INCOMPATIBLE_OPTION_PAIR"></a>
11671167
### `ERR_INCOMPATIBLE_OPTION_PAIR`
11681168

1169-
An option pair is incompatible with each other and can not be used at the same
1169+
An option pair is incompatible with each other and cannot be used at the same
11701170
time.
11711171

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

Diff for: lib/internal/errors.js

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

Diff for: test/parallel/test-console-tty-colors.js

+1-1
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
}

0 commit comments

Comments
 (0)