We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e71ad1d commit c924d20Copy full SHA for c924d20
app/(account)/resend-confirm-email/actions.ts
@@ -42,7 +42,7 @@ export const postResendConfirmationMail = async (_: ResendConfirmationMailReques
42
return {success: false, error: error};
43
}
44
45
- throw new Error('Unknown error');
+ return {success: false, error: {error: 'An unexpected error happened', status: 500}};
46
47
48
} catch (e) {
0 commit comments