« get me outta code hell

Log track info, and more - http-music - Command-line music player + utils (not a server!)
about summary refs log tree commit diff
path: root/src/promisify-process.js
diff options
context:
space:
mode:
authorliam4 <towerofnix@gmail.com>2017-06-11 20:31:24 -0300
committerliam4 <towerofnix@gmail.com>2017-06-11 20:31:24 -0300
commit296a7e71a62fafc297a2666c7ecaf4eca7b459a4 (patch)
treeb8b59a42d742ae639c12d95af4b7313c2442f98e /src/promisify-process.js
parent791c62508c00de07e3190c078824d8277926673d (diff)
Log track info, and more
Diffstat (limited to 'src/promisify-process.js')
-rw-r--r--src/promisify-process.js7
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)
       }
     })