diff --git a/node_stream_zip.js b/node_stream_zip.js index d95bbef..a4cd2f5 100644 --- a/node_stream_zip.js +++ b/node_stream_zip.js @@ -516,6 +516,9 @@ const StreamZip = function (config) { return; } fsStm = fs.createWriteStream(outPath, { fd: fdFile }); + fsStm.on('error',(err)=>{ + callback(err); + }) fsStm.on('finish', () => { that.emit('extract', entry, outPath); if (!errThrown) {