Skip to content

Commit

Permalink
pgrg
Browse files Browse the repository at this point in the history
  • Loading branch information
icco committed Aug 30, 2023
1 parent d4a3db8 commit 776a543
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/app/post/[slug]/error.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,15 @@ export default function Error({
error: Error & { digest?: string }
reset: () => void
}) {
let code = 404
let message = error.message
return (
<div>
<h2>{error.name}</h2>
</div>
<>
<div className="flex flex-col items-center justify-center">
<div className="mb-4 flex-auto">
<h1 className="inline-block mx-2">{code}</h1><h2 className="inline-block mx-2">{message}</h2>
</div>
</div>
</>
)
}

0 comments on commit 776a543

Please sign in to comment.