diff --git a/app/ErrorPage.tsx b/app/ErrorPage.tsx index 17cb2e0..f6d74ee 100644 --- a/app/ErrorPage.tsx +++ b/app/ErrorPage.tsx @@ -4,11 +4,26 @@ export default function ErrorPage() { const error = useRouteError(); console.error(error); + if (error.status === 404) { + return ( +
Sorry, the page you are looking for does not exist.
+
+ To add new routes, create a new file in app/routes
and register it in app.tsx
.
+
Sorry, an unexpected error has occurred.
-+
Sorry, an unexpected error has occurred.
+{error.statusText || error.message}