2
0

🔊 Add better error log for auth email sending

This commit is contained in:
Baptiste Arnaud
2024-03-11 11:17:42 +01:00
parent 4a7d10f578
commit 595bffc38d

View File

@ -9,6 +9,7 @@ export const sendVerificationRequest = async ({ identifier, url }: Props) => {
try {
await sendMagicLinkEmail({ url, to: identifier })
} catch (err) {
throw new Error(`Email(s) could not be sent`)
console.error(err)
throw new Error(`Magic link email could not be sent. See error above.`)
}
}