mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-09-07 15:15:49 +08:00
chore: update error messages
This commit is contained in:
parent
b9928f03c0
commit
f5f4453624
1 changed files with 2 additions and 3 deletions
|
@ -212,7 +212,7 @@ export async function sendVerificationEmail(
|
|||
if (message === undefined) {
|
||||
throw new MonkeyError(
|
||||
500,
|
||||
"Firebase failed to generate an email verification link. Unknown error occured"
|
||||
"Failed to generate an email verification link. Unknown error occured"
|
||||
);
|
||||
} else {
|
||||
if (message.toLowerCase().includes("too_many_attempts")) {
|
||||
|
@ -223,8 +223,7 @@ export async function sendVerificationEmail(
|
|||
} else {
|
||||
throw new MonkeyError(
|
||||
500,
|
||||
"Firebase failed to generate an email verification link: " +
|
||||
message,
|
||||
"Failed to generate an email verification link: " + message,
|
||||
(e as Error).stack
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue