From 723fd22854e6cd6e3fb46a01a5a4172bdd82533c 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 0a9fb4547..1ba8255c1 100644 --- a/cli/src/services/hook-runner.ts +++ b/cli/src/services/hook-runner.ts @@ -34,7 +34,7 @@ export default class HookRunner { const output = error.stderr.toString(); if (output.length > 0) { - formatter.error(hook, output); + formatter.error(hook, [output]); } else { formatter.error(hook, [`Exit status: ${error.status}`]); }