From a7f6c9936c4350348aa810d4eef032fe33583f3a Mon Sep 17 00:00:00 2001 From: Christoph Altmann Date: Fri, 3 Oct 2014 14:44:17 +0200 Subject: [PATCH] Pass fail result to callback as second parameter --- zip.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zip.js b/zip.js index a3316588..58dca328 100644 --- a/zip.js +++ b/zip.js @@ -20,8 +20,8 @@ exports.unzip = function(fileName, outputDirectory, callback, progressCallback) }; var fail = function(result) { if (callback) { - callback(-1); + callback(-1, new Error(result)); } }; exec(win, fail, 'Zip', 'unzip', [fileName, outputDirectory]); -}; \ No newline at end of file +};