Skip to content

Commit

Permalink
fix: do not fail due to unoconv exit code
Browse files Browse the repository at this point in the history
We can get bad exit code for warnings.
  • Loading branch information
aalemayhu committed Dec 24, 2024
1 parent 5c8b1bf commit 9e10e7d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib/pdf/ConvertPPTToPDF.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ export function convertPPTToPDF(
stderr
);
if (error) {
reject(new Error(error.message || 'Conversion failed'));
await fs.writeFile(
path.join(workspace.location, 'error.log'),
error.message || 'Conversion failed'
);
}
resolve(await fs.readFile(pdfFile));
}
Expand Down

0 comments on commit 9e10e7d

Please sign in to comment.