Trace the error

This commit is contained in:
Manav Rathi
2024-05-13 18:50:12 +05:30
parent 5e9e1623ae
commit 0b797cebed

View File

@@ -237,6 +237,7 @@ const handleConvertToMP4Write = async (request: Request) => {
try {
await ffmpegConvertToMP4(inputTempFilePath, outputTempFilePath);
} catch (e) {
log.error("Conversion to MP4 failed", e);
await deleteTempFileIgnoringErrors(outputTempFilePath);
throw e;
} finally {