From 020669bb9cec415eca6e6c5e8ca555e81890f243 Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Tue, 14 Oct 2025 08:02:44 +0000 Subject: [PATCH] Improve error display for server check verification cgen-2ceb114a136b4d41b1900a394634f933 --- client/components/onboarding/Welcome.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/components/onboarding/Welcome.tsx b/client/components/onboarding/Welcome.tsx index b44cbb73..950ee167 100644 --- a/client/components/onboarding/Welcome.tsx +++ b/client/components/onboarding/Welcome.tsx @@ -209,10 +209,12 @@ export default function Welcome({ const payload = await resp.json().catch(() => ({} as any)); if (!resp.ok) { + const serverMessage = + payload?.error || payload?.message || (Object.keys(payload || {}).length ? JSON.stringify(payload) : "Server check failed"); console.error("Server check-verification failed", payload); toastError({ title: "Unable to verify", - description: payload?.error || "Server check failed", + description: serverMessage, }); } else { const confirmed = Boolean(payload?.verified);