diff --git a/lib/unzip-stream.js b/lib/unzip-stream.js index 5608184..34f909b 100644 --- a/lib/unzip-stream.js +++ b/lib/unzip-stream.js @@ -352,7 +352,7 @@ UnzipStream.prototype._prepareOutStream = function (vars, entry) { entry.skip = true; setImmediate(() => { - entry.emit("error", new Error(message)); + self.emit('error', new Error(message)); }); // try to skip over this entry