Files
sweet/tests/fixture_custom_500/routes/_500.tsx
T

10 lines
292 B
TypeScript

import { ErrorHandler, ErrorPageProps } from "../../../server.ts";
export const handler: ErrorHandler = (_req, ctx) => {
return ctx.render();
};
export default function Error500Page({ error }: ErrorPageProps) {
return <p class="custom-500">Custom 500: {(error as Error).message}</p>;
}