From 9d12c14b19bc30baa4cf556a0b8281e76637f7db Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Fri, 11 Sep 2020 21:27:52 -0700 Subject: [PATCH] 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: https://github.com/nodejs/node/pull/35164 Reviewed-By: Anna Henningsen Reviewed-By: Denys Otrishko Reviewed-By: Derek Lewis Reviewed-By: Luigi Pinca --- doc/api/errors.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/api/errors.md b/doc/api/errors.md index eace3deaec76d2..db56c571e9c30c 100644 --- a/doc/api/errors.md +++ b/doc/api/errors.md @@ -1381,7 +1381,7 @@ specifier. ### `ERR_INVALID_PACKAGE_CONFIG` -An invalid [`package.json`][] file was found which failed parsing. +An invalid [`package.json`][] file failed parsing. ### `ERR_INVALID_PACKAGE_TARGET` @@ -1611,7 +1611,7 @@ added: REPLACEME --> An object that needs to be explicitly listed in the `transferList` argument -was found in the object passed to a [`postMessage()`][] call, but not provided +is in the object passed to a [`postMessage()`][] call, but is not provided in the `transferList` for that call. Usually, this is a `MessagePort`. In Node.js versions prior to REPLACEME, the error code being used here was @@ -2133,7 +2133,7 @@ import 'package-name'; // supported ### `ERR_VALID_PERFORMANCE_ENTRY_TYPE` While using the Performance Timing API (`perf_hooks`), no valid performance -entry types were found. +entry types are found. ### `ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING`