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()