From d9bd4a0c958b6bc4daa5c181702f58fde4298a21 Mon Sep 17 00:00:00 2001 From: Aviv Keller <38299977+RedYetiDev@users.noreply.github.com> Date: Sat, 18 May 2024 09:39:19 -0400 Subject: [PATCH] tools: update error message for Type Error --- tools/doc/type-parser.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/doc/type-parser.mjs b/tools/doc/type-parser.mjs index c183b2963a4c3c..a3da66babfbb84 100644 --- a/tools/doc/type-parser.mjs +++ b/tools/doc/type-parser.mjs @@ -307,8 +307,8 @@ export function toLink(typeInput) { `<${typeTextFull}>`); } else { throw new Error( - `Unrecognized type: '${typeTextFull}'.\n` + - `Please, edit the type or update '${import.meta.url}'.`, + `Unrecognized type: '${typeTextFull}' in '${import.meta.url}'.\n` + + 'Valid types can be found at https://github.com/nodejs/node/blob/HEAD/tools/doc/type-parser.mjs', ); } } else {