File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
src/pages/[locale]/demo/built-in-utilities Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ const ErrorsHandlingPage: NextPage<Props> = (props): JSX.Element => {
77
77
< h2 > 404 - Using CSR</ h2 >
78
78
79
79
< 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.
81
81
</ Alert >
82
82
83
83
< p >
@@ -98,7 +98,7 @@ const ErrorsHandlingPage: NextPage<Props> = (props): JSX.Element => {
98
98
< h2 > 404 - Using full page reload</ h2 >
99
99
100
100
< 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.
102
102
</ Alert >
103
103
104
104
< p >
@@ -123,6 +123,7 @@ const ErrorsHandlingPage: NextPage<Props> = (props): JSX.Element => {
123
123
124
124
< Alert color = { 'info' } >
125
125
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.
126
127
</ Alert >
127
128
128
129
< Code
@@ -162,7 +163,7 @@ const ErrorsHandlingPage: NextPage<Props> = (props): JSX.Element => {
162
163
163
164
< hr />
164
165
165
- < h2 > Interactive error (simulating User interaction)</ h2 >
166
+ < h2 > Interactive errors (simulating User interaction)</ h2 >
166
167
167
168
< Btn mode = { 'primary-outline' } >
168
169
< I18nLink href = { '/demo/built-in-utilities/interactive-error' } > Go to interactive error page</ I18nLink > < br />
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ const InteractiveErrorPage: NextPage<Props> = (props): JSX.Element => {
76
76
< Button
77
77
onClick = { ( ) : void => {
78
78
setIsClicked ( true ) ;
79
- throw new Error ( 'Page 500 error example' ) ;
79
+ throw new Error ( 'Page 500 error example (handled) ' ) ;
80
80
} }
81
81
>
82
82
Will it crash the whole app?
@@ -99,7 +99,7 @@ const InteractiveErrorPage: NextPage<Props> = (props): JSX.Element => {
99
99
<Button
100
100
onClick={(): void => {
101
101
setIsClicked(true);
102
- throw new Error('Page 500 error example');
102
+ throw new Error('Page 500 error example (handled) ');
103
103
}}
104
104
>
105
105
Will it crash the whole app?
You can’t perform that action at this time.
0 commit comments