Skip to content

Commit

Permalink
put errors loading page into the console, for easier debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
kavigupta committed Feb 1, 2025
1 parent afa31fc commit 615907c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions react/src/navigation/routers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ function FormatNavigationError({ error }: { error: unknown }): ReactNode {
}

function PageLoadError({ url, error }: { url: URL, error: unknown }): ReactNode {
console.error('Error loading page', error)
return (
<>
<h1>
Expand Down

0 comments on commit 615907c

Please sign in to comment.