Skip to content

Commit f32f876

Browse files
committed
Improve documentation about error handling
1 parent 774f83f commit f32f876

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/pages/[locale]/demo/built-in-utilities/errors-handling.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ const ErrorsHandlingPage: NextPage<Props> = (props): JSX.Element => {
7777
<h2>404 - Using CSR</h2>
7878

7979
<Alert color={'info'}>
80-
This page doesn't exist and should display a 404 page.
80+
This page doesn't exist and should display a 404 page. The error will be reported to Sentry.
8181
</Alert>
8282

8383
<p>
@@ -98,7 +98,7 @@ const ErrorsHandlingPage: NextPage<Props> = (props): JSX.Element => {
9898
<h2>404 - Using full page reload</h2>
9999

100100
<Alert color={'info'}>
101-
This page doesn't exist and should display a 404 page.
101+
This page doesn't exist and should display a 404 page. The error will be reported to Sentry.
102102
</Alert>
103103

104104
<p>
@@ -123,6 +123,7 @@ const ErrorsHandlingPage: NextPage<Props> = (props): JSX.Element => {
123123

124124
<Alert color={'info'}>
125125
This page throws an error right from the Page component and should display a 500 page error without anything else (no footer/header).
126+
The error will be reported to Sentry.
126127
</Alert>
127128

128129
<Code
@@ -162,7 +163,7 @@ const ErrorsHandlingPage: NextPage<Props> = (props): JSX.Element => {
162163

163164
<hr />
164165

165-
<h2>Interactive error (simulating User interaction)</h2>
166+
<h2>Interactive errors (simulating User interaction)</h2>
166167

167168
<Btn mode={'primary-outline'}>
168169
<I18nLink href={'/demo/built-in-utilities/interactive-error'}>Go to interactive error page</I18nLink><br />

src/pages/[locale]/demo/built-in-utilities/interactive-error.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ const InteractiveErrorPage: NextPage<Props> = (props): JSX.Element => {
7676
<Button
7777
onClick={(): void => {
7878
setIsClicked(true);
79-
throw new Error('Page 500 error example');
79+
throw new Error('Page 500 error example (handled)');
8080
}}
8181
>
8282
Will it crash the whole app?
@@ -99,7 +99,7 @@ const InteractiveErrorPage: NextPage<Props> = (props): JSX.Element => {
9999
<Button
100100
onClick={(): void => {
101101
setIsClicked(true);
102-
throw new Error('Page 500 error example');
102+
throw new Error('Page 500 error example (handled)');
103103
}}
104104
>
105105
Will it crash the whole app?

0 commit comments

Comments
 (0)