fix: add error-handler type to manifest (#1933)

This commit is contained in:
Christian Svensson
2023-10-16 07:45:34 +02:00
committed by GitHub
parent 86a96eeee4
commit 206d5002d6
4 changed files with 16 additions and 6 deletions
+5 -1
View File
@@ -1,4 +1,8 @@
import { ErrorPageProps } from "../../../server.ts";
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>;