org.webjars.npm:promise-done

WebJar for promise-done


License
Unlicense

Documentation

promise-done npm version

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())
  .catch(done)