err-candy

1.0.3 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i err-candy

Weekly Downloads

4

Version

1.0.3

License

none

Last publish

Collaborators

  • mattmueller