   res.error = new ErrorPage req, res, opts
   res.error status, message
 
-
-module.exports.connect = (opts) ->
-  (req, res, next) ->
-    req.errorHandlerOptions = opts
-    next()
-

plates = require 'plates'
util = require 'util'
errs = require 'errs'

# An `error-page` handler, because `templar` wasn't working.
errorTemplate = (req, res, data) ->

  err = errs.create err unless util.isError err
  console.error err.stack || err

  # The configurable error-page options.
  opts = merge heckOptions, res.heckOptions ? {}

  # The status code and error message.
  message = err.stack.message || err.message || err
