Skip to content
This repository was archived by the owner on Nov 30, 2023. It is now read-only.

Commit 17f9f72

Browse files
authored
Don't output error if echo'ing
1 parent 8553ae3 commit 17f9f72

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

build/src/utils/async.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ module.exports = {
3636
const proc = spawnCb(command, args, opts);
3737
proc.on('close', (code, signal) => {
3838
if (code !== 0) {
39-
console.log(result);
39+
if(!echo) {
40+
console.error(result);
41+
}
4042
const err = new Error(`Non-zero exit code: ${code} ${signal || ''}`);
4143
err.result = result;
4244
err.code = code;

0 commit comments

Comments
 (0)