DEPRECATED use this instead: https://github.com/matthewmueller/combine-errors
DEPRECATED use this instead: https://github.com/matthewmueller/combine-errors
Better formatting for your errors. Supports combining errors into one.
npm install err-candy
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
MIT