🔊 Add better error log for auth email sending
This commit is contained in:
@ -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.`)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user