Philipp Partosch 46a936d7de added all files to project | 2 years ago | |
---|---|---|
.. | ||
index.js | 2 years ago | |
license | 2 years ago | |
package.json | 2 years ago | |
readme.md | 2 years ago |
:warning: Throw a given error.
npm:
npm install bail
var bail = require('bail')
bail()
bail(new Error('failure'))
// Error: failure
// at repl:1:6
// at REPLServer.defaultEval (repl.js:154:27)
// …
bail([err])
Throw a given error.
err
(Error?
) — Optional error.Error
— Given error, if any.