mirror of
https://github.com/better-auth/better-auth.git
synced 2026-05-25 08:31:37 -05:00
fix: error message on existing user
This commit is contained in:
@@ -75,7 +75,7 @@ export const signUpEmail = <O extends BetterAuthOptions>() =>
|
||||
if (dbUser?.user) {
|
||||
ctx.context.logger.info(`Sign-up attempt for existing email: ${email}`);
|
||||
throw new APIError("UNPROCESSABLE_ENTITY", {
|
||||
message: "Failed to create user",
|
||||
message: "User with this email already exists",
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user