summaryrefslogtreecommitdiff
path: root/tools/copyright_checker.js
diff options
context:
space:
mode:
authorMatt Mastracci <matthew@mastracci.com>2023-03-21 10:31:34 -0600
committerGitHub <noreply@github.com>2023-03-21 10:31:34 -0600
commit08849a48ca8f7d59cd7d2fc51dcc8ec02a216030 (patch)
tree3878db2ae9bf373fce781af63b6f5c5e577ed83e /tools/copyright_checker.js
parent2fcf1f14cf29bb68995f652f93a4f6e3cb55c8d7 (diff)
chore(tools): Copyright checker had a bad interpolation (#18328)
The copyright checker was erroring out with a bad interpolation if errors existed.
Diffstat (limited to 'tools/copyright_checker.js')
-rw-r--r--tools/copyright_checker.js2
1 files changed, 1 insertions, 1 deletions
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.`);
}
}