Skip to content

Commit

Permalink
formatter.error accepts an array of strings
Browse files Browse the repository at this point in the history
  • Loading branch information
marclefrancois committed Mar 5, 2024
1 parent 990cb78 commit 430d8ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/src/services/hook-runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 430d8ce

Please sign in to comment.