Simple, dependency-free way to combine multiple errors into one.
This is useful for handling multiple asynchronous errors, where you want to catch all the errors and combine them to return just a single error.
Featureserror instanceof Error === true
error([error([err1, err2]), err3])
error(err).message === err.message && error(err).stack === err.stack
npm install combine-errors
Usage
Licensevar error = require('combine-errors')
var err = error([
  new Error('boom'),
  new Error('kablam')
])
throw err
MIT
Package Sidebar Install Downloads Weekly DownloadsRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4