♻️Added specific Exception to be monitored to one-of storage strategy

This commit is contained in:
Anton SHEPILOV
2024-11-01 18:22:10 +01:00
committed by Anton Shepilov
parent da9736e23b
commit f76a04ddbf
9 changed files with 96 additions and 13 deletions
@@ -36,7 +36,9 @@ export async function convertFromPdf(
//Just no more page to convert
}
} catch (error) {
const pdfConversionError = new PDFConversionError("Can't convert file with pdf-image.", { cause: error });
const pdfConversionError = new PDFConversionError("Can't convert file with pdf-image.", {
cause: error,
});
logger.error(pdfConversionError);
for (const file of pages) {
cleanFiles([file]);