Skip to content

Commit 1636374

Browse files
committed
zip file error handling
1 parent b8cfa71 commit 1636374

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/core/services/package-manager.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* eslint-disable max-lines */
2+
import { EventEmitter } from 'events';
23
import fs from 'fs';
34
import os from 'os';
45
import path from 'path';
@@ -228,6 +229,9 @@ class PackageManager {
228229
writeStream.on('error', (error) => {
229230
reject(error);
230231
});
232+
(zipFile as unknown as EventEmitter).on('error', (error) => {
233+
reject(error);
234+
});
231235
zipFile.outputStream
232236
.pipe(writeStream)
233237
.on('error', (error) => {

0 commit comments

Comments
 (0)