From f6e191751a8bbf407e6469b076020a81b5071320 Mon Sep 17 00:00:00 2001 From: Charlie Park Date: Thu, 10 Oct 2024 14:37:36 -0400 Subject: [PATCH] Add console.error to the error boundary (#2498) Add console.error to error boundary --- app/components/ErrorBoundary.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/app/components/ErrorBoundary.tsx b/app/components/ErrorBoundary.tsx index 91085e08fe..52db88e5ca 100644 --- a/app/components/ErrorBoundary.tsx +++ b/app/components/ErrorBoundary.tsx @@ -38,5 +38,6 @@ export const ErrorBoundary = (props: { children: React.ReactNode }) => ( export function RouterDataErrorBoundary() { // TODO: validate this unknown at runtime _before_ passing to ErrorFallback const error = useRouteError() as Props['error'] + console.error(error) return }