1.0.3 • Published 8 years ago

err-candy v1.0.3

Weekly downloads
12
License
-
Repository
github
Last release
8 years ago

err-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

1.0.3

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago