formatter.error accepts an array of strings (#418)

This commit is contained in:
Marc Lefrancois 2024-03-05 17:07:28 -05:00 committed by GitHub
parent 990cb78c29
commit c61e9a5d8c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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}`]);
}