From f32f87628fedb2e33d6cf4f21522873bd2de2f61 Mon Sep 17 00:00:00 2001 From: Dhenain Ambroise Date: Fri, 25 Jun 2021 09:05:59 +0200 Subject: [PATCH] Improve documentation about error handling --- .../[locale]/demo/built-in-utilities/errors-handling.tsx | 7 ++++--- .../[locale]/demo/built-in-utilities/interactive-error.tsx | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/pages/[locale]/demo/built-in-utilities/errors-handling.tsx b/src/pages/[locale]/demo/built-in-utilities/errors-handling.tsx index f3b4296e..cbc85171 100644 --- a/src/pages/[locale]/demo/built-in-utilities/errors-handling.tsx +++ b/src/pages/[locale]/demo/built-in-utilities/errors-handling.tsx @@ -77,7 +77,7 @@ const ErrorsHandlingPage: NextPage = (props): JSX.Element => {

404 - Using CSR

- This page doesn't exist and should display a 404 page. + This page doesn't exist and should display a 404 page. The error will be reported to Sentry.

@@ -98,7 +98,7 @@ const ErrorsHandlingPage: NextPage = (props): JSX.Element => {

404 - Using full page reload

- This page doesn't exist and should display a 404 page. + This page doesn't exist and should display a 404 page. The error will be reported to Sentry.

@@ -123,6 +123,7 @@ const ErrorsHandlingPage: NextPage = (props): JSX.Element => { This page throws an error right from the Page component and should display a 500 page error without anything else (no footer/header). + The error will be reported to Sentry. = (props): JSX.Element => {


-

Interactive error (simulating User interaction)

+

Interactive errors (simulating User interaction)

Go to interactive error page
diff --git a/src/pages/[locale]/demo/built-in-utilities/interactive-error.tsx b/src/pages/[locale]/demo/built-in-utilities/interactive-error.tsx index a2eb677d..53dfd434 100644 --- a/src/pages/[locale]/demo/built-in-utilities/interactive-error.tsx +++ b/src/pages/[locale]/demo/built-in-utilities/interactive-error.tsx @@ -76,7 +76,7 @@ const InteractiveErrorPage: NextPage = (props): JSX.Element => {