From 296a7e71a62fafc297a2666c7ecaf4eca7b459a4 Mon Sep 17 00:00:00 2001 From: liam4 Date: Sun, 11 Jun 2017 20:31:24 -0300 Subject: Log track info, and more --- src/promisify-process.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/promisify-process.js') 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) } }) -- cgit 1.3.0-6-gf8a5