Files

13 lines
556 B
TypeScript

// SPDX-License-Identifier: LicenseRef-ConusAI-Template-1.0
"use client"
// What a person sees when a page throws (spec §10.4). The strings come from the root layout's
// `BoundaryMessages`, in the person's language; the error is reported to observability from here
// because React swallows what a boundary catches (src/ui/boundary.tsx).
import { ErrorView } from "../src/ui/boundary"
export default function ErrorPage({ error, retry }: { error: Error & { digest?: string }; retry: () => void }) {
return <ErrorView error={error} retry={retry} />
}