lanjianrong 3 years ago
parent
commit
6ec0433377
1 changed files with 3 additions and 0 deletions
  1. 3 0
      app/controller/ledger_controller.js

+ 3 - 0
app/controller/ledger_controller.js

@@ -1056,6 +1056,9 @@ module.exports = app => {
                         fs.unlinkSync(path.resolve(this.app.baseDir, zipPath));
                     }
                 });
+                readStream.on('error', error => {
+                    this.log(error);
+                });
             } catch (err) {
                 this.log(err);
                 this.setMessage(err.toString(), this.messageType.ERROR);