promise-done
v1.0.1
Published
Propagate errors out of promise context.
Downloads
7
Readme
promise-done
Propagate errors out of promise context.
Description
This library allows to terminate promises by throwing an exception for unhandled errors. This is especially useful when we just want the stack trace to be displayed in case of unhandled error.
Usage
import done from 'promise-done'
stuff()
.then(otherStuff())
.then(null, done)