Skip to content

Commit 8d881ce

Browse files
committed
Print errors on each line
1 parent c444e70 commit 8d881ce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ class ProcessManager {
6464

6565
exit() {
6666
if (this.errors.length > 0) {
67-
this.log.error({ errors: this.errors }, 'Exiting with errors');
67+
this.log.error(`Exiting with ${this.errors.length} error${this.errors.length > 1 ? 's' : ''}`);
68+
this.errors.forEach(err => this.log.error(err));
6869

6970
// Output console to error in case no `DEBUG` namespace has been set.
7071
// This mimicks the default node behaviour of not silencing errors.

0 commit comments

Comments
 (0)