mirror of
https://github.com/baptisteArno/typebot.io.git
synced 2026-06-19 21:04:33 +08:00
🔊 Add better error log for auth email sending
This commit is contained in:
parent
4a7d10f578
commit
595bffc38d
@ -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.`)
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user