node/tools/eslint/node_modules/bail
Rich Trott 31f572c3ea
tools: update to ESLint 4.3.0
PR-URL: https://github.com/nodejs/node/pull/14417
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Teddy Katz <teddy.katz@gmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: Refael Ackermann <refack@gmail.com>
2017-09-05 12:50:01 -04:00
..
index.js tools: update ESLint to 4.2.0 2017-09-05 12:49:53 -04:00
LICENSE build, doc, tools: add eslint-plugin-markdown 2017-07-30 23:11:10 -05:00
package.json tools: update to ESLint 4.3.0 2017-09-05 12:50:01 -04:00
readme.md tools: update ESLint to 4.2.0 2017-09-05 12:49:53 -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