errorMiddleware(ctx: Context,next: Next): Promise<void>
Answers an APIException with its status, code and message. Anything
else is logged with its stack and answered with a 500 SERVER_ERROR whose
message gives nothing away.
errorMiddleware(ctx: Context,next: Next): Promise<void>
Answers an APIException with its status, code and message. Anything
else is logged with its stack and answered with a 500 SERVER_ERROR whose
message gives nothing away.
import { errorMiddleware } from "api/middleware/error.ts";