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 {