mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
tools: update error message for Type Error
PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
parent
bc13f23f7e
commit
ccceae091a
@ -309,8 +309,8 @@ export function toLink(typeInput) {
|
||||
`<a href="${typeUrl}" class="type"><${typeTextFull}></a>`);
|
||||
} 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 {
|
||||
|
Loading…
Reference in New Issue
Block a user