node/tools/eslint/node_modules/bail
cjihrig ba73a67d45 tools: update to ESLint 4.10.0
PR-URL: https://github.com/nodejs/node/pull/16738
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
2017-12-13 16:59:02 +00:00
..
index.js tools: update ESLint to 4.2.0 2017-07-19 15:02:31 -04:00
LICENSE
package.json tools: update to ESLint 4.10.0 2017-12-13 16:59:02 +00:00
readme.md tools: update ESLint to 4.2.0 2017-07-19 15:02:31 -04:00

bail Build Status Coverage Status

⚠️ Throw a given error.

Installation

npm:

npm install bail

Usage

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.

License

MIT © Titus Wormer