Skip to content

Commit

Permalink
馃攰 Add better error log for auth email sending
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed Mar 11, 2024
1 parent 4a7d10f commit 595bffc
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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.`)
}
}

0 comments on commit 595bffc

Please sign in to comment.