lhl 6ff0e96ad3 8-4-1 | 1 anno fa | |
---|---|---|
.. | ||
index.js | 1 anno fa | |
license | 1 anno fa | |
package.json | 1 anno fa | |
readme.md | 1 anno fa |
: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.