From 178efff2ecdc647f7e163595becf734f4e3b5a3f Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 8 Jan 2025 08:57:29 +0000 Subject: [PATCH] Update all non-major dependencies (#2064) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Michael Telatynski <7t3chguy@gmail.com> --- scripts/copy-res.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/copy-res.ts b/scripts/copy-res.ts index a13436b..fd5aa60 100755 --- a/scripts/copy-res.ts +++ b/scripts/copy-res.ts @@ -12,9 +12,9 @@ const argv = parseArgs(process.argv.slice(2), {}); const watch = argv.w; const verbose = argv.v; -function errCheck(err?: Error): void { +function errCheck(err: unknown): void { if (err) { - console.error(err.message); + console.error(err instanceof Error ? err.message : err); process.exit(1); } }