chore: defensive checking

This commit is contained in:
Remy Sharp
2018-12-14 16:20:16 +00:00
parent 5a0589c2ec
commit aa0f579be7

View File

@@ -151,7 +151,9 @@ function run(options) {
});
child.on('exit', function (code, signal) {
process.stdin.unpipe(child.stdin);
if (child && child.stdin) {
process.stdin.unpipe(child.stdin);
}
if (code === 127) {
utils.log.error('failed to start process, "' + cmd.executable +