fix log message when sending

This commit is contained in:
Thomas Ruoff
2022-06-23 23:16:34 +02:00
parent 8bb93b023a
commit dc3c0da9dd

View File

@@ -208,10 +208,10 @@ async function sendMail({
try {
await sgMail.send(data)
} catch (error) {
log.error(error)
log.error('Failed to send email', error)
if (error.response) {
log.error(error.response.body)
log.error('Failed to send email', error.response.body)
}
// TODO: stuff into DB if failed and retry later