From b9e3226612d12ab8e47f9490da862d6739ae5399 Mon Sep 17 00:00:00 2001 From: Bruno Quaresma Date: Mon, 5 Jun 2023 17:43:24 -0300 Subject: [PATCH] refactor(site): give default error message when description is missing (#7846) --- site/src/api/errors.ts | 2 +- site/src/components/Alert/Alert.tsx | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/site/src/api/errors.ts b/site/src/api/errors.ts index 9ff8569f4c..3a39cd0dcf 100644 --- a/site/src/api/errors.ts +++ b/site/src/api/errors.ts @@ -90,5 +90,5 @@ export const getErrorDetail = ( isApiError(error) ? error.response.data.detail : error instanceof Error - ? error.stack + ? `Please check the developer console for more details.` : null diff --git a/site/src/components/Alert/Alert.tsx b/site/src/components/Alert/Alert.tsx index 66ca469919..6fb919436c 100644 --- a/site/src/components/Alert/Alert.tsx +++ b/site/src/components/Alert/Alert.tsx @@ -27,6 +27,7 @@ export const Alert: FC = ({