fix: improve error management file download

This commit is contained in:
tdurieux
2022-10-04 13:25:36 +02:00
parent 85ab24f369
commit f7a994b6dc
2 changed files with 6 additions and 4 deletions

View File

@@ -192,7 +192,8 @@ export default class AnonymizedFile {
try {
await pipe(await this.anonymizedContent(), res);
} catch (error) {
handleError(error, res);
handleError(error);
res.end();
}
}
}