1.0.0 • Published 10 years ago
nodeon-express-error v1.0.0
nodeON-express-error
The nodeON Express Error Handler
Install
Install the module using NPM:
npm install nodeon-express-error --saveDocumentation
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
noStackattribute, if it is set to true no stack will be logged.
- Honor the
- 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.
