papertrail/app/error.tsx
caelum0x 695a365ae4 feat: PaperTrail — enterprise evidence-verification platform
Multi-tenant platform (182 pages, 228 API routes, ~30 modules) built on a
deterministic verification core: clinical-trial claims checked against
ClinicalTrials.gov registered results and raw event counts (ARR/NNT/RR+CI
recomputed in code, oracle-tested), code-enforced exact-span grounding, and
multi-source cross-verification. Auth/RBAC/multi-tenancy, document processing
at scale (unpdf + Docling), agentic workflows, Claude Science connector,
compliance/audit, billing, public API, and more.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-08 07:21:22 +03:00

37 lines
1.1 KiB
TypeScript

"use client";
interface ErrorPageProps {
error: Error & { digest?: string };
reset: () => void;
}
export default function Error({ error, reset }: ErrorPageProps) {
return (
<main className="mx-auto max-w-3xl px-4 py-16">
<header className="mb-6">
<h1 className="text-2xl font-semibold">Something went wrong</h1>
<p className="mt-2 text-sm leading-relaxed text-ink/60">
PaperTrail hit an unexpected error while handling this page. Nothing was
saved incorrectly — you can try again, and if the problem persists, reload
the page or come back in a moment.
</p>
</header>
{error.digest ? (
<p className="mb-6 text-xs text-ink/40">
Reference:{" "}
<code className="rounded bg-ink/5 px-1 py-0.5 text-ink/60">{error.digest}</code>
</p>
) : null}
<button
type="button"
onClick={reset}
className="rounded-lg bg-accent px-4 py-2 text-sm font-medium text-white transition-colors hover:bg-accent/90"
>
Try again
</button>
</main>
);
}