Skip to content

Commit 6e61d7c

Browse files
committed
Do not duplicate error printing.
1 parent ff635a1 commit 6e61d7c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/build-cli.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,10 @@ let buildProcess = argv.docsOnly ? docs(argv) : build();
3030

3131
buildProcess
3232
.catch(err => {
33-
console.error(err.toString().red);
3433
if (err.stack) {
3534
console.error(err.stack.red);
35+
} else {
36+
console.error(err.toString().red);
3637
}
3738
process.exit(1);
3839
});

0 commit comments

Comments
 (0)