Skip to content

Commit

Permalink
fix(utils): improve error logging
Browse files Browse the repository at this point in the history
  • Loading branch information
kennyhyun committed May 23, 2024
1 parent 95db4c8 commit f3cda36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class SpawnError extends Error {
}

toString() {
return `${this.message}\n${this.stderr}`;
return [this.message, this.stderr, this.stderr].filter(Boolean).join('\n');
}
}

Expand Down

0 comments on commit f3cda36

Please sign in to comment.