err-candy
v1.0.0err-candy
Better formatting for your errors. Supports combining errors into one.
Features
- Combines multiple errors into one
- Normalizes the error message
- Cleans up the stack trace
Installation
npm install error
Usage
Single Error:
var candy = req('err-candy')
var error = candy(new Error('a'))
throw err
Multiple Errors:
var candy = req('err-candy')
var errors = [
new Error('a'),
new Error('b')
]
var error = candy(errors)
throw err
License
MIT
npm i [email protected]
Metadata
- Unknown
- Whatever
- Matthew Mueller
- released 2/19/2016