Skip to content

Commit af19240

Browse files
avivkellersopho9
authored andcommitted
tools: update error message for Type Error
PR-URL: nodejs#53047 Reviewed-By: Claudio Wunder <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Juan José Arboleda <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 66d0816 commit af19240

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/doc/type-parser.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,8 +309,8 @@ export function toLink(typeInput) {
309309
`<a href="${typeUrl}" class="type">&lt;${typeTextFull}&gt;</a>`);
310310
} else {
311311
throw new Error(
312-
`Unrecognized type: '${typeTextFull}'.\n` +
313-
`Please, edit the type or update '${import.meta.url}'.`,
312+
`Unrecognized type: '${typeTextFull}' in '${import.meta.url}'.\n` +
313+
'Valid types can be found at https://github.com/nodejs/node/blob/HEAD/tools/doc/type-parser.mjs',
314314
);
315315
}
316316
} else {

0 commit comments

Comments
 (0)