Skip to content

Commit 2a1fde7

Browse files
avivkellermarco-ippolito
authored andcommitted
tools: update error message for Type Error
PR-URL: #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 bf3d944 commit 2a1fde7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/doc/type-parser.mjs

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

0 commit comments

Comments
 (0)