tailbone

an error handler modular app for express apps.

tailbone

  • an error handler node module
  • a modular app of express, only do one thing: render error pages for main(parent) app.

npm install tailbone

  var Tailbone = require('tailbone');
  var express  = require('express');
 
  var tailbone = Tailbone.create();
  var app      = express();
 
  app.get('/e', function (req, res, next) {
    next(new Error('500 error found'));
  });
 
  tailbone.enable(app);
 
  app.listen(3000);
 

pls see examples