fix: display friendly error message for password validation on signup (#5563)

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Brian FrommandClaude authored and GitHub committed 2025-11-19 17:42:50 +01:00
1 parent a3b5584505
commit 6d5aa355e4
3 files changed
+13 -1

No files matched your search

+5 -1
View File
@@ -101,7 +101,11 @@ export async function signup(username: string, password: string) {
});
if (res.status !== 200) {
throw new StatusError(`${res.status} ${res.statusText}`, res.status);
const body = await res.text();
throw new StatusError(
body || `${res.status} ${res.statusText}`,
res.status
);
}
}