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.`);
}
}