Module ringo/middleware/error

Middleware to catch errors and generate simple error pages.

Functions


middleware (skin)

Create JSGI middleware to display error messages and stack traces.

Example

var app = middleware("templates/error.html")(app);

Parameters

String skin the path to a template for rendering error pages (defaults to 'error.html')

Returns

Function a function that can be used to wrap a JSGI app