From 5fc57a36c95d356d421cb7d53ee76791693c40fa Mon Sep 17 00:00:00 2001 From: Calum Muir Date: Mon, 22 Dec 2025 13:16:10 +0000 Subject: [PATCH] Surface contact email error details --- client/src/pages/Contact.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/src/pages/Contact.tsx b/client/src/pages/Contact.tsx index 0314e19..530ee80 100644 --- a/client/src/pages/Contact.tsx +++ b/client/src/pages/Contact.tsx @@ -67,7 +67,10 @@ export const Contact = (): JSX.Element => { details?: string; } | null; if (errorData?.error) { - throw new Error(errorData.error); + const detail = errorData.details + ? ` (${errorData.details})` + : ""; + throw new Error(`${errorData.error}${detail}`); } const errorText = await response.text().catch(() => ""); const message = errorText.trim()