Skip to content

Commit

Permalink
(fix) returning error message for zipStream
Browse files Browse the repository at this point in the history
  • Loading branch information
EMaslowskiQ committed Jan 3, 2024
1 parent 184f537 commit 9721e2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/utils/zipStream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export class ZipStream implements IZip {

const P = new Promise<Buffer>((resolve, reject) => {
this._inputStream!.on('data', (chunk: Buffer) => chunks.push(chunk)); /* istanbul ignore next */ // eslint-disable-line @typescript-eslint/no-non-null-assertion
this._inputStream!.on('error', () => reject()); // eslint-disable-line @typescript-eslint/no-non-null-assertion
this._inputStream!.on('error', (error) => reject(error)); // eslint-disable-line @typescript-eslint/no-non-null-assertion
this._inputStream!.on('end', () => resolve(Buffer.concat(chunks))); // eslint-disable-line @typescript-eslint/no-non-null-assertion
});

Expand Down

0 comments on commit 9721e2c

Please sign in to comment.