nodeon-express-error

1.0.0 • Public • Published

nodeON-express-error

The nodeON Express Error Handler

Build Status

Install

Install the module using NPM:

npm install nodeon-express-error --save

Documentation

Just add as a plain express middleware, make sure to add it LAST.

var nodeonExpressError = require('nodeon-express-error');

/** ... your middleware ... */

// Now add the nodeON Express Error Handler LAST
app.use(nodeonExpressError);

HTTP Code

To propagate an HTTP Code response to the client use the property httpCode.

Works with NodeON Error

This Error Handler is optimized to work with the nodeON Error Package, check it out it's worth 60".

Release History

  • v1.0.0, 04 May 2016
    • Updated all dependencies to latest, got rid of bcrypt dep via nodeon-helpers.
  • v0.1.3, 20 Jul 2015
    • Honor the noStack attribute, if it is set to true no stack will be logged.
  • v0.1.2, 02 Feb 2015
    • Enabled variable error views.
  • v0.1.1, 02 Feb 2015
    • Fix bug in fallback error case.
  • v0.1.0, 15 Dec 2014
    • Update HTTP Response Status Code property expectations, adjusting to nodeON Error 0.2.x series.
  • v0.0.4, 11 Dec 2014
    • Fix bug in casting unknown errors.
  • v0.0.3, 11 Dec 2014
    • Now also logs the full requested url.
  • v0.0.2, 11 Dec 2014
    • Properly expose the handler and write test cases.
  • v0.0.1, 11 Dec 2014
    • Big Bang

License

Copyright Thanasis Polychronakis. Licensed under the MIT license.

Readme

Keywords

none

Package Sidebar

Install

npm i nodeon-express-error

Weekly Downloads

3

Version

1.0.0

License

none

Last publish

Collaborators

  • thanpolas