Miss any of our Open RFC calls?Watch the recordings here! »

bail

1.0.5 • Public • Published

bail

Build Coverage Downloads Size

⚠️ 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

Install

npm i bail

DownloadsWeekly Downloads

3,274,878

Version

1.0.5

License

MIT

Unpacked Size

4.3 kB

Total Files

4

Last publish

Collaborators

  • avatar