catch stderr from yarn subprocess, addresses #2301

This commit is contained in:
Ben Harris 2018-03-27 16:55:18 -04:00 committed by Ben Harris
parent 12cdec3f2e
commit 56004ec338
2 changed files with 8 additions and 0 deletions

View File

@ -90,6 +90,10 @@ program
}); });
}); });
add.stderr.on("data", (data) => {
log.error(data.toString());
});
add.on("error", (e) => { add.on("error", (e) => {
log.error(`${e}`); log.error(`${e}`);
process.exit(1); process.exit(1);

View File

@ -80,6 +80,10 @@ program
}); });
}); });
remove.stderr.on("data", (data) => {
log.error(data.toString());
});
remove.on("error", errorHandler); remove.on("error", errorHandler);
remove.on("close", (code) => { remove.on("close", (code) => {