diff --git a/lib/pass.js b/lib/pass.js index 5193dfd..620313d 100644 --- a/lib/pass.js +++ b/lib/pass.js @@ -257,6 +257,9 @@ Pass.prototype.pipe = function(output) { } else { process.nextTick(function() { self.signZip(zip, manifest, function(error) { + if (error) { + return self.emit("error", error); + } zip.close(); zip.on("end", function() { self.emit("end"); diff --git a/package.json b/package.json index e984ca1..405b52b 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,7 @@ "node-passbook": "./bin/node-passbook" }, "dependencies": { + "async": "^0.9.0", "cli": "0.6.5" }, "devDependencies": {