Skip to content

Commit

Permalink
πŸ”Š #404 Add logs for errors happening during ZIP file creation (#431)
Browse files Browse the repository at this point in the history
  • Loading branch information
shepilov authored Mar 11, 2024
1 parent faa42c2 commit 7281043
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tdrive/backend/node/src/services/documents/services/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -920,6 +920,10 @@ export class DocumentsService {
zlib: { level: 9 },
});

archive.on('error', error => {
this.logger.error("error while creating ZIP file: ", error);
});

for (const id of ids) {
if (!(await checkAccess(id, null, "read", this.repository, context))) {
this.logger.warn(`not enough permissions to download ${id}, skipping`);
Expand Down

0 comments on commit 7281043

Please sign in to comment.