From 595bffc38d65b5f5ef0ec07bec00e9eebb7657f8 Mon Sep 17 00:00:00 2001 From: Baptiste Arnaud Date: Mon, 11 Mar 2024 11:17:42 +0100 Subject: [PATCH] :loud_sound: Add better error log for auth email sending --- .../src/features/auth/helpers/sendVerificationRequest.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/builder/src/features/auth/helpers/sendVerificationRequest.ts b/apps/builder/src/features/auth/helpers/sendVerificationRequest.ts index ef3694434..1cf579b0e 100644 --- a/apps/builder/src/features/auth/helpers/sendVerificationRequest.ts +++ b/apps/builder/src/features/auth/helpers/sendVerificationRequest.ts @@ -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.`) } }