Skip to content

Commit 9d12c14

Browse files
committed
doc: use present tense in error messages
Error messages are a mix of present and past tense. They should be mostly or entirely present tense. This eliminates the past tense constructions "was found" and "were found". PR-URL: #35164 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Denys Otrishko <shishugi@gmail.com> Reviewed-By: Derek Lewis <DerekNonGeneric@inf.is> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent b569376 commit 9d12c14

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/api/errors.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1381,7 +1381,7 @@ specifier.
13811381
<a id="ERR_INVALID_PACKAGE_CONFIG"></a>
13821382
### `ERR_INVALID_PACKAGE_CONFIG`
13831383

1384-
An invalid [`package.json`][] file was found which failed parsing.
1384+
An invalid [`package.json`][] file failed parsing.
13851385

13861386
<a id="ERR_INVALID_PACKAGE_TARGET"></a>
13871387
### `ERR_INVALID_PACKAGE_TARGET`
@@ -1611,7 +1611,7 @@ added: REPLACEME
16111611
-->
16121612

16131613
An object that needs to be explicitly listed in the `transferList` argument
1614-
was found in the object passed to a [`postMessage()`][] call, but not provided
1614+
is in the object passed to a [`postMessage()`][] call, but is not provided
16151615
in the `transferList` for that call. Usually, this is a `MessagePort`.
16161616

16171617
In Node.js versions prior to REPLACEME, the error code being used here was
@@ -2133,7 +2133,7 @@ import 'package-name'; // supported
21332133
### `ERR_VALID_PERFORMANCE_ENTRY_TYPE`
21342134

21352135
While using the Performance Timing API (`perf_hooks`), no valid performance
2136-
entry types were found.
2136+
entry types are found.
21372137

21382138
<a id="ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING"></a>
21392139
### `ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING`

0 commit comments

Comments
 (0)