diff --git a/app/layout.tsx b/app/layout.tsx index 51f8d0e..4a4421d 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -1,6 +1,7 @@ import type { Metadata } from "next"; import { Inter } from "next/font/google"; import "./globals.css"; +import ErrorBoundary from "@/components/ErrorBoundary"; const inter = Inter({ subsets: ["latin"] }); @@ -17,7 +18,9 @@ export default function RootLayout({ return (
- {children} ++ An error occurred while rendering the application. This might be due to corrupted data or a temporary issue. +
+ +
+ {this.state.error.toString()}
+ {this.state.errorInfo?.componentStack}
+
+