diff --git a/tools/doc/type-parser.mjs b/tools/doc/type-parser.mjs index 4166640a322f11..4e962e1c1ec864 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 {