diff options
author | liam4 <towerofnix@gmail.com> | 2017-06-11 20:31:24 -0300 |
---|---|---|
committer | liam4 <towerofnix@gmail.com> | 2017-06-11 20:31:24 -0300 |
commit | 296a7e71a62fafc297a2666c7ecaf4eca7b459a4 (patch) | |
tree | b8b59a42d742ae639c12d95af4b7313c2442f98e /src/promisify-process.js | |
parent | 791c62508c00de07e3190c078824d8277926673d (diff) |
Log track info, and more
Diffstat (limited to 'src/promisify-process.js')
-rw-r--r-- | src/promisify-process.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/promisify-process.js b/src/promisify-process.js index d1c09d7..d330055 100644 --- a/src/promisify-process.js +++ b/src/promisify-process.js @@ -3,9 +3,9 @@ const { Writable } = require('stream') module.exports = function promisifyProcess(proc) { - // Takes a process (from the child_process module) and returns a promise that - // resolves when the process exits (or rejects with a warning, if the exit - // code is non-zero). + // Takes a process (from the child_process module) and returns a promise + // that resolves when the process exits (or rejects, if the exit code is + // non-zero). return new Promise((resolve, reject) => { proc.stdout.pipe(process.stdout) @@ -15,7 +15,6 @@ module.exports = function promisifyProcess(proc) { if (code === 0) { resolve() } else { - console.error("Process failed!", proc.spawnargs) reject(code) } }) |