From 08849a48ca8f7d59cd7d2fc51dcc8ec02a216030 Mon Sep 17 00:00:00 2001 From: Matt Mastracci Date: Tue, 21 Mar 2023 10:31:34 -0600 Subject: chore(tools): Copyright checker had a bad interpolation (#18328) The copyright checker was erroring out with a bad interpolation if errors existed. --- tools/copyright_checker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/copyright_checker.js b/tools/copyright_checker.js index cdd11bcb3..4911d6a05 100644 --- a/tools/copyright_checker.js +++ b/tools/copyright_checker.js @@ -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.`); } } -- cgit v1.2.3