1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 15:24:46 -05:00

chore(tools): Copyright checker had a bad interpolation (#18328)

The copyright checker was erroring out with a bad interpolation if
errors existed.
This commit is contained in:
Matt Mastracci 2023-03-21 10:31:34 -06:00 committed by GitHub
parent 2fcf1f14cf
commit 08849a48ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -72,7 +72,7 @@ export async function checkCopyright() {
// show all the errors at the same time to prevent overlap with
// other running scripts that may be outputting
console.error(errors.join("\n"));
throw new Error(`Copyright checker had ${totalCount} errors.`);
throw new Error(`Copyright checker had ${errors.length} errors.`);
}
}