Extremely Popular
Go to Latest
function rutt.defaultErrorHandler
import { rutt } from "https://dotland.deno.dev/x/fresh@1.1.5/src/server/deps.ts";
const { defaultErrorHandler } = rutt;

The default error handler for the router. By default it responds with null body and a status of 500 along with console.error logging the caught error.

Parameters

_req: Request
err: unknown