Type Method
default(environment:)
Create a default
ErrorMiddleware. Logs errors to a Logger based on Environment and converts Error to Response based on conformance to AbortError and Debuggable.static func `default`(environment: Environment) -> ErrorMiddleware
Parameters
environmentThe environment to respect when presenting errors.