From 4b1a544510f436fac951c8d161c4fbce44c42580 Mon Sep 17 00:00:00 2001 From: liam4 Date: Wed, 31 May 2017 19:32:36 -0300 Subject: General improvements --- src/promisify-process.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/promisify-process.js') diff --git a/src/promisify-process.js b/src/promisify-process.js index ca49b31..ef8d0c6 100644 --- a/src/promisify-process.js +++ b/src/promisify-process.js @@ -2,7 +2,8 @@ module.exports = function promisifyProcess(proc, showLogging = true) { // Takes a process (from child_process) and returns a promise that resolves - // when the process exits. + // when the process exits (or rejects with a warning, if the exit code is + // non-zero). return new Promise((resolve, reject) => { if (showLogging) { @@ -14,7 +15,7 @@ module.exports = function promisifyProcess(proc, showLogging = true) { if (code === 0) { resolve() } else { - console.error('Process failed!', proc.spawnargs) + console.error("Process failed!", proc.spawnargs) reject(code) } }) -- cgit 1.3.0-6-gf8a5