From 0e37ace7e732bbb4aafb70a120c740a30d4dc201 Mon Sep 17 00:00:00 2001 From: Thanh Tran Date: Tue, 1 Oct 2024 11:40:20 +0700 Subject: [PATCH] chore: fix type check --- src/installer/bin.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/installer/bin.ts b/src/installer/bin.ts index 81d392f5..175b97ad 100644 --- a/src/installer/bin.ts +++ b/src/installer/bin.ts @@ -109,8 +109,8 @@ function run(): void { console.log(`husky > Done`) } catch (err) { - console.log(chalk.red(err.message.trim())) - debug(err.stack) + console.log(chalk.red((err as NodeJS.ErrnoException).message.trim())) + debug(String((err as NodeJS.ErrnoException).stack)) console.log(chalk.red(`husky > Failed to ${action}`)) } }