Skip to content

Commit ddeb591

Browse files
vinodkiranCopilotHenryHengZJ
authored
Better Error reporting for document store operations. (#4350)
* Better Error reporting for document store operations. * Update packages/ui/src/ErrorBoundary.jsx Co-authored-by: Copilot <[email protected]> * Update index.ts --------- Co-authored-by: Copilot <[email protected]> Co-authored-by: Henry Heng <[email protected]>
1 parent fc6eea7 commit ddeb591

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/ui/src/ErrorBoundary.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const ErrorBoundary = ({ error }) => {
1616
<Stack flexDirection='column' sx={{ alignItems: 'center', gap: 3 }}>
1717
<Stack flexDirection='column' sx={{ alignItems: 'center', gap: 1 }}>
1818
<Typography variant='h2'>Oh snap!</Typography>
19-
<Typography variant='h3'>The following error occured when loading this page.</Typography>
19+
<Typography variant='h3'>The following error occurred when loading this page.</Typography>
2020
</Stack>
2121
<Card variant='outlined'>
2222
<Box sx={{ position: 'relative', px: 2, py: 3 }}>
@@ -27,7 +27,7 @@ const ErrorBoundary = ({ error }) => {
2727
>
2828
<IconCopy />
2929
</IconButton>
30-
<pre style={{ margin: 0 }}>
30+
<pre style={{ margin: 0, overflowWrap: 'break-word', whiteSpace: 'pre-wrap', textAlign: 'center' }}>
3131
<code>{`Status: ${error.response.status}`}</code>
3232
<br />
3333
<code>{error.response.data.message}</code>

0 commit comments

Comments
 (0)