Skip to content

Commit b9e3226

Browse files
refactor(site): give default error message when description is missing (#7846)
1 parent 7ec16cf commit b9e3226

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

site/src/api/errors.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,5 +90,5 @@ export const getErrorDetail = (
9090
isApiError(error)
9191
? error.response.data.detail
9292
: error instanceof Error
93-
? error.stack
93+
? `Please check the developer console for more details.`
9494
: null

site/src/components/Alert/Alert.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export const Alert: FC<AlertProps> = ({
2727
<Collapse in={open}>
2828
<MuiAlert
2929
{...alertProps}
30+
sx={{ textAlign: "left", ...alertProps.sx }}
3031
severity={severity}
3132
action={
3233
<>

0 commit comments

Comments
 (0)