🔊 #404 Add logs for errors happening during ZIP file creation (#431)

This commit is contained in:
Anton Shepilov
2024-03-11 14:37:58 +01:00
committed by GitHub
parent faa42c2b22
commit 7281043e8f
@@ -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`);