create-rotor 0.3.4 → 0.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/template/app/error.tsx +2 -0
package/package.json
CHANGED
package/template/app/error.tsx
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
3
|
export default function ErrorPage({
|
|
4
|
+
error,
|
|
4
5
|
reset,
|
|
5
6
|
}: {
|
|
6
7
|
error: Error & { digest?: string }
|
|
@@ -9,6 +10,7 @@ export default function ErrorPage({
|
|
|
9
10
|
return (
|
|
10
11
|
<main className="flex min-h-screen flex-col items-center justify-center p-24">
|
|
11
12
|
<h1 className="font-bold text-4xl">Something went wrong</h1>
|
|
13
|
+
<p className="mt-2 text-gray-500">{error.message}</p>
|
|
12
14
|
<button
|
|
13
15
|
className="mt-4 rounded-md bg-neutral-900 px-4 py-2 text-sm text-white hover:bg-neutral-800"
|
|
14
16
|
onClick={reset}
|