diff --git a/lib/add.js b/lib/add.js index 2e70fcc..6a57a89 100644 --- a/lib/add.js +++ b/lib/add.js @@ -5,7 +5,7 @@ var u = { files : require('../util/files'), run : require('../util/run'), switches: require('../util/switches'), - path : require('../util/path') + path : require('../util/path'), }; /** @@ -22,7 +22,7 @@ module.exports = function (archive, files, options) { return when.promise(function (resolve, reject, progress) { // Convert array of files into a string if needed. - var files = u.files(files); + files = u.files(files); try { if (options.path) { var command = u.path(options); diff --git a/util/run.js b/util/run.js index b40f893..20c613e 100644 --- a/util/run.js +++ b/util/run.js @@ -95,7 +95,6 @@ module.exports = function (command, switches) { run.stderr.on('data', function (data) { //throw errors err = data.toString(); - reject(err) }); run.on('error', function (err) { reject(err)