Verbessere Fehlerbehandlung in der Verschlüsselung und PDF-Generierung durch Hinzufügen von Ursacheninformationen
This commit is contained in:
@@ -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 })
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user