Skip to content

Commit 6022346

Browse files
avivkellertargos
authored andcommitted
tools: update error message for Type Error
PR-URL: #53047 Reviewed-By: Claudio Wunder <cwunder@gnome.org> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent b7d7e9a commit 6022346

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
@@ -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)