From 99a7d1544ad6551b8103e93103a7956b9ccb24dd Mon Sep 17 00:00:00 2001 From: Marcel Gerber Date: Sat, 10 Jan 2015 19:26:55 +0100 Subject: [PATCH] Send the error over to the callback if decompress-zip fails --- src/extensibility/node/package-validator.js | 2 +- src/extensibility/node/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/extensibility/node/package-validator.js b/src/extensibility/node/package-validator.js index 9cf5f98afcc..eb580fe53cb 100644 --- a/src/extensibility/node/package-validator.js +++ b/src/extensibility/node/package-validator.js @@ -270,7 +270,7 @@ function extractAndValidateFiles(zipPath, extractDir, options, callback) { unzipper.on("error", function (err) { // General error to report for problems reading the file callback(null, { - errors: [[Errors.INVALID_ZIP_FILE, zipPath]] + errors: [[Errors.INVALID_ZIP_FILE, zipPath, err]] }); return; }); diff --git a/src/extensibility/node/package.json b/src/extensibility/node/package.json index 87d31de2a9f..a7e8846cde0 100644 --- a/src/extensibility/node/package.json +++ b/src/extensibility/node/package.json @@ -1,7 +1,7 @@ { "name": "brackets-extensibility", "description": "Used in the management of Brackets extensions", - "version": "0.45.0", + "version": "1.2.0", "dependencies": { "decompress-zip": "0.0.2", "semver": "2.x",