diff --git a/app/(account)/resend-confirm-email/actions.ts b/app/(account)/resend-confirm-email/actions.ts index 5ff606f..b27851b 100644 --- a/app/(account)/resend-confirm-email/actions.ts +++ b/app/(account)/resend-confirm-email/actions.ts @@ -42,7 +42,7 @@ export const postResendConfirmationMail = async (_: ResendConfirmationMailReques return {success: false, error: error}; } - throw new Error('Unknown error'); + return {success: false, error: {error: 'An unexpected error happened', status: 500}}; } } catch (e) {