Surface contact email error details
This commit is contained in:
parent
c3cc8cfb1c
commit
5fc57a36c9
1 changed files with 4 additions and 1 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue