Skip to content

Commit

Permalink
Print errors on each line
Browse files Browse the repository at this point in the history
  • Loading branch information
satazor committed Jan 2, 2025
1 parent c444e70 commit fb57b67
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ class ProcessManager {

exit() {
if (this.errors.length > 0) {
this.log.error({ errors: this.errors }, 'Exiting with errors');
this.log.error(`Exiting with ${this.errors.length} errors`);
this.errors.forEach(err => this.log.error(err));

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

0 comments on commit fb57b67

Please sign in to comment.