Middleware that catches exceptions thrown by the handler, and reports the
error and stacktrace via a webpage and STDERR log.
This middleware is for debugging purposes, and should be limited to
(wrap-stacktrace handler options)
Wrap a handler such that exceptions are caught, a corresponding stacktrace is
logged to *err*, and a HTML representation of the stacktrace is returned as a
Accepts the following option:
:color? - if true, apply ANSI colors to terminal stacktrace (default false)
(wrap-stacktrace-log handler options)
Wrap a handler such that exceptions are logged to *err* and then rethrown.
Accepts the following options:
:color? - if true, apply ANSI colors to stacktrace (default false)
Wrap a handler such that exceptions are caught and a response containing
a HTML representation of the exception and stacktrace is returned.