fix: include actionable error details

This commit is contained in:
JetSprow
2026-04-29 15:03:00 +10:00
parent d7681240bb
commit df74723b52
28 changed files with 178 additions and 74 deletions

View File

@@ -58,7 +58,7 @@ async function generateUniqueInviteCode(): Promise<string> {
}
}
throw new Error("邀请码生成失败,请稍后重试");
throw new Error("邀请码生成失败:连续 10 次生成的随机码都已存在,请稍后重试");
}
export async function updateAccountProfile(formData: FormData) {