Skip to content

Commit 6dd8fac

Browse files
committed
Improve sign-up rule error descriptions
1 parent 7fc1107 commit 6dd8fac

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

packages/stack-shared/src/known-errors.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export abstract class KnownError extends StatusError {
8484
}
8585
}
8686

87-
throw new Error(`Unknown KnownError code. You may need to update your version of Stack to see more detailed information. ${json.code}: ${json.message}`);
87+
throw new Error(`An error occurred. Please update your version of the Stack Auth SDK. ${json.code}: ${json.message}`);
8888
}
8989
}
9090

@@ -731,9 +731,9 @@ const SignUpRejected = createKnownErrorConstructor(
731731
"SIGN_UP_REJECTED",
732732
(message?: string) => [
733733
403,
734-
message ?? "Your sign up was rejected. Please contact us for more information.",
734+
message ?? "Your sign up was rejected by an administrator's sign-up rule.",
735735
{
736-
message: message ?? "Your sign up was rejected. Please contact us for more information.",
736+
message: message ?? "Your sign up was rejected by an administrator's sign-up rule.",
737737
},
738738
] as const,
739739
(json: any) => [json.message] as const,

0 commit comments

Comments
 (0)