eudoxia0 / clack-errors

Error page middleware for Clack.
27 stars 3 forks source link

Allow setting a custom error page, fixes #1 #4

Closed jorams closed 10 years ago

jorams commented 10 years ago

This change adds an initarg :PROD-RENDERER to the middleware, specifying a function to call to render the error page when DEBUG is false. The function in the FN slot of the middleware now takes another argument to specify the function to call.