mirror of
https://github.com/velocitatem/cvfs.git
synced 2026-07-16 03:13:36 +00:00
Initial commit
This commit is contained in:
20
apps/webapp/src/app/error.tsx
Normal file
20
apps/webapp/src/app/error.tsx
Normal file
@@ -0,0 +1,20 @@
|
||||
'use client';
|
||||
|
||||
export default function Error({
|
||||
error,
|
||||
reset,
|
||||
}: {
|
||||
error: Error & { digest?: string };
|
||||
reset: () => void;
|
||||
}) {
|
||||
return (
|
||||
<div>
|
||||
{/* TODO: Style this error page when implementing in your project */}
|
||||
<h2>Something went wrong!</h2>
|
||||
<p>{error.message || 'An unexpected error occurred'}</p>
|
||||
<button onClick={() => reset()}>
|
||||
Try again
|
||||
</button>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user