From ccceae091aab8fa35d93a978b248ad02a68e1080 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 4166640a322..4e962e1c1ec 100644 --- a/tools/doc/type-parser.mjs +++ b/tools/doc/type-parser.mjs @@ -309,8 +309,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 {