From 2a1fde7e3279ef09efeb60bfc2b702529ef35b9e Mon Sep 17 00:00:00 2001 From: Aviv Keller <38299977+RedYetiDev@users.noreply.github.com> Date: Fri, 24 May 2024 21:20:02 -0400 Subject: [PATCH] tools: update error message for Type Error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/53047 Reviewed-By: Claudio Wunder Reviewed-By: Benjamin Gruenbaum Reviewed-By: Juan José Arboleda Reviewed-By: James M Snell --- 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 {