bail
Throw a given error
Last updated 6 months ago by wooorm .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install bail 
SYNC missed versions from official npm registry.

bail

Build Coverage Downloads Size

:warning: Throw a given error.

Install

npm:

npm install bail

Use

var bail = require('bail')

bail()

bail(new Error('failure'))
// Error: failure
//     at repl:1:6
//     at REPLServer.defaultEval (repl.js:154:27)
//     …

API

bail([err])

Throw a given error.

Parameters
  • err (Error?) — Optional error.
Throws
  • Error — Given error, if any.

Related

License

MIT © Titus Wormer

Current Tags

  • 1.0.5                                ...           latest (6 months ago)

6 Versions

  • 1.0.5                                ...           6 months ago
  • 1.0.4                                ...           a year ago
  • 1.0.3                                ...           2 years ago
  • 1.0.2                                ...           3 years ago
  • 1.0.1                                ...           4 years ago
  • 1.0.0                                ...           5 years ago

Copyright 2014 - 2017 © taobao.org |