We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b56d8c commit 8d38b28Copy full SHA for 8d38b28
lib/util/spawn.js
@@ -5,7 +5,9 @@ module.exports = (cmd, args, options, ermsg) => new Promise((res, rej) => {
5
const proc = spawn(cmd, args, options)
6
const stdout = []
7
const stderr = []
8
- proc.on('error', er => withStdio(rej, er, stdout, stderr))
+ proc.on('error',
9
+ /* istanbul ignore next: node 8 just throws from spawn() */
10
+ er => withStdio(rej, er, stdout, stderr))
11
if (proc.stdout) {
12
proc.stdout.on('data', c => stdout.push(c))
13
proc.stdout.on('error', er => withStdio(rej, er, stdout, stderr))
0 commit comments