Skip to content

Commit 8060ef2

Browse files
committed
add sentry breadcrumb to error page
1 parent d290ac4 commit 8060ef2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/client/components/ErrorPage.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ export const ErrorPage = () => {
1111
const { t } = useTranslation()
1212

1313
React.useEffect(() => {
14+
Sentry.addBreadcrumb({
15+
category: 'errorPage',
16+
message: error.message,
17+
level: 'fatal',
18+
})
1419
Sentry.captureException(error)
1520
}, [error])
1621

0 commit comments

Comments
 (0)