Report more errors to sentry

Mostly from ErrorView
This commit is contained in:
David Baker
2023-07-21 11:58:21 +01:00
parent 0d89f497aa
commit b44ab47a1a
2 changed files with 4 additions and 0 deletions

View File

@@ -18,6 +18,7 @@ import { ReactNode, useCallback, useEffect } from "react";
import { useLocation } from "react-router-dom";
import classNames from "classnames";
import { Trans, useTranslation } from "react-i18next";
import * as Sentry from "@sentry/react";
import { Header, HeaderLogo, LeftNav, RightNav } from "./Header";
import { LinkButton, Button } from "./button";
@@ -58,6 +59,7 @@ export function ErrorView({ error }: ErrorViewProps) {
useEffect(() => {
console.error(error);
Sentry.captureException(error);
}, [error]);
const onReload = useCallback(() => {