Verbessere Fehlerbehandlung in der Verschlüsselung und PDF-Generierung durch Hinzufügen von Ursacheninformationen
Some checks failed
Code Analysis and Production Deploy / analyze (push) Failing after 6m34s
Code Analysis and Production Deploy / deploy-production (push) Has been skipped
Code Analysis and Production Deploy / deploy-test (push) Has been skipped

This commit is contained in:
Torsten Schulz (local)
2026-07-17 08:52:16 +02:00
parent f0ac4b7e56
commit d260f00756
3 changed files with 7 additions and 7 deletions

View File

@@ -73,8 +73,8 @@ export class PDFGeneratorService {
try {
await fs.access(this.fallbackTemplatePath)
return this.fallbackTemplatePath
} catch (_fallbackError) {
throw new Error('No PDF template found')
} catch (fallbackError) {
throw new Error('No PDF template found', { cause: fallbackError })
}
}
}