Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
feat(control-ui): render member-registration 503 codes as human copy
Jose Ramirez21f7a99e1c1a
diff --git a/control-ui/lib/api.ts b/control-ui/lib/api.tsindex 3977f721b..408d2535e 100644--- a/control-ui/lib/api.ts+++ b/control-ui/lib/api.ts@@ -101,7 +101,11 @@ function formatApiError(res: Response, text: string): Error {? 'Desktop App password must be between 8 and 256 characters.': detail === 'password must be between 8 and 256 characters'? 'Password must be between 8 and 256 characters.'- : detail+ : detail === 'member_registration_unavailable'+ ? "Invitations are unavailable — the member-registration service isn't configured or can't be reached. Check the server logs for details."+ : detail === 'member_registration_misconfigured'+ ? 'Invitations are unavailable — member registration is misconfigured. Check the server logs for details.'+ : detailconst error = new Error(`${res.status} ${res.statusText} - ${friendlyDetail}`);(error as Error & { status?: number }).status = res.status// Preserve the machine-readable error code and full JSON body so callers can