Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Fix

Manav Rathi4b0536a5b26d
diff --git a/web/packages/gallery/services/ffmpeg/web.ts b/web/packages/gallery/services/ffmpeg/web.ts
index 74a0566bd1..f1b9a6912c 100644
--- a/web/packages/gallery/services/ffmpeg/web.ts
+++ b/web/packages/gallery/services/ffmpeg/web.ts
@@ -112,8 +112,9 @@ const ffmpegExec = async (
try {
await ffmpeg.deleteFile(outputPath);
} catch (e) {
- // Output file might not even exist if the command did not succeed.
- if (status !== 0) {
+ // Output file might not even exist if the command did not succeed,
+ // so only log on success.
+ if (status === 0) {
log.error(`Failed to remove output ${outputPath}`, e);
}
}