tools,doc: fix error message for unrecognized type

PR-URL: https://github.com/nodejs/node/pull/39221
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Antoine du Hamel
2021-07-01 17:03:15 +02:00
committed by Michaël Zasso
parent 5e32644b6f
commit b5375f2e55

View File

@@ -288,7 +288,7 @@ export function toLink(typeInput) {
} else {
throw new Error(
`Unrecognized type: '${typeTextFull}'.\n` +
"Please, edit the type or update the 'tools/doc/type-parser.js'."
`Please, edit the type or update '${import.meta.url}'.`
);
}
} else {