diff --git a/helpers/mail.ts b/helpers/mail.ts index f09865a..16a788a 100644 --- a/helpers/mail.ts +++ b/helpers/mail.ts @@ -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