/** @jsx h */ import { h } from "preact"; import { DEBUG } from "./constants.ts"; import type { ErrorPageProps } from "./types.ts"; export default function DefaultErrorPage(props: ErrorPageProps) { const { error } = props; let message = undefined; if (DEBUG) { if (error instanceof Error) { message = error.stack; } else { message = String(error); } } return (

An error occured during route handling or page rendering.

{message &&
            {message}
        
}
); }