Skip to content

Commit

Permalink
tools: update error message for Type Error
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
RedYetiDev authored and marco-ippolito committed Jul 19, 2024
1 parent bf3d944 commit 2a1fde7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/doc/type-parser.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,8 @@ export function toLink(typeInput) {
`<a href="${typeUrl}" class="type">&lt;${typeTextFull}&gt;</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 {
Expand Down

0 comments on commit 2a1fde7

Please sign in to comment.