Skip to content

Commit

Permalink
Update unzip-stream.js
Browse files Browse the repository at this point in the history
unhandled Error event. Impossible handle error on Entry.
  • Loading branch information
Aleksey Druzhinin authored Apr 19, 2021
1 parent 4a4be03 commit fb546d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/unzip-stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fb546d1

Please sign in to comment.