From 430d8cee00181027f1c1dedc7e5e280050c8b3d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Lefran=C3=A7ois?= Date: Tue, 5 Mar 2024 16:27:50 -0500 Subject: [PATCH] formatter.error accepts an array of strings --- cli/src/services/hook-runner.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/src/services/hook-runner.ts b/cli/src/services/hook-runner.ts index 0a9fb454..db72a5c9 100644 --- a/cli/src/services/hook-runner.ts +++ b/cli/src/services/hook-runner.ts @@ -31,7 +31,7 @@ export default class HookRunner { const output = execSync(hook, {stdio: 'pipe'}).toString(); if (output.length > 0) formatter.success(hook, output); } catch (error: any) { - const output = error.stderr.toString(); + const output: string[] = [error.stderr.toString()]; if (output.length > 0) { formatter.error(hook, output);