0.5.3 • Published 7 years ago

correct-error-handler v0.5.3

Weekly downloads
3
License
ISC
Repository
github
Last release
7 years ago

Build Status

correct-error-handler

Just correct implementation of error handler for Express.JS and FeathersJS apps. Set ROLLBAR_TOKEN env var to send errors to Rollbar.

Usage

For FeathersJS apps:

const errorHandler = require("correct-error-handler");

// some middlewares

app.configure(errorHandler);

For Express.JS apps:

const errorHandler = require("correct-error-handler");

// some middlewares

errorHandler(app);

Or:

const errorHandler = require("correct-error-handler/basic");
const rollbar = require("correct-error-handler/rollbar");

// some middlewares

app.use(rollbar());
app.use(errorHandler());
0.5.3

7 years ago

0.5.2

7 years ago

0.5.1

7 years ago

0.5.0

7 years ago