More details for email error

This commit is contained in:
Chocobozzz
2026-05-26 09:18:49 +02:00
parent bf670abd92
commit ca4c0a7e7f
+1 -1
View File
@@ -420,7 +420,7 @@ export class Emailer {
}
if (errors.length !== 0) {
const err = new Error('Some errors when sent emails') as Error & { errors: Error[] }
const err = new Error('Some errors when sent emails: ' + errors.map(e => e.message).join(', ')) as Error & { errors: Error[] }
err.errors = errors
throw err