initial commit
This commit is contained in:
commit
e2466b202a
50 changed files with 4356 additions and 0 deletions
15
routes/_error.tsx
Normal file
15
routes/_error.tsx
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
/**
|
||||
* Copyright (c) 2025 favewa
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
import Empty from "@/components/Empty.tsx";
|
||||
import { HttpError, PageProps } from "fresh";
|
||||
|
||||
export default function Err(props: PageProps) {
|
||||
const error = props.error;
|
||||
if (error instanceof HttpError && error.status == 404) {
|
||||
return <Empty path={props.url.pathname} />;
|
||||
}
|
||||
return <h1>oopsie, uh oh</h1>;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue