mirror of
https://github.com/stackblitz-labs/bolt.diy
synced 2025-06-26 18:26:38 +00:00
Sentry follow up fix
This commit is contained in:
parent
18f1983097
commit
a362eb8a75
@ -1,4 +1,4 @@
|
||||
import { captureRemixErrorBoundaryError } from '@sentry/remix';
|
||||
import { sentryHandleError } from '~/lib/sentry';
|
||||
import { useStore } from '@nanostores/react';
|
||||
import type { LinksFunction } from '@remix-run/cloudflare';
|
||||
import { Links, Meta, Outlet, Scripts, ScrollRestoration, useRouteError } from '@remix-run/react';
|
||||
@ -83,7 +83,7 @@ import { logStore } from './lib/stores/logs';
|
||||
|
||||
export const ErrorBoundary = () => {
|
||||
const error = useRouteError();
|
||||
captureRemixErrorBoundaryError(error);
|
||||
sentryHandleError(error as Error);
|
||||
|
||||
return <div>Something went wrong</div>;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user