From 79acf932414a7c3805f5e27dfbff3ee050114cbe 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 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/api/errors.md b/doc/api/errors.md index 7de3ee9da2e58f..16d4e21aa9d65d 100644 --- a/doc/api/errors.md +++ b/doc/api/errors.md @@ -1391,7 +1391,7 @@ An invalid or unknown file encoding was passed. ### `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` @@ -1608,8 +1608,8 @@ is thrown if a required option is missing. ### `ERR_MISSING_MESSAGE_PORT_IN_TRANSFER_LIST` 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 in -the `transferList` for that call. Usually, this is a `MessagePort`. +is in the object passed to a `postMessage()` call, but is not provided +in the `transferList` for that call. Usually, this is a `MessagePort`. ### `ERR_MISSING_PASSPHRASE` @@ -2092,7 +2092,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`