File: errors.coffee
Defined in: | lib/resin/errors |
Method Summary
-
~
(void)
handle(error, exit = true)
Handle error instances
Prints the message to stderr and aborts the program with the corresponding error code, or 0 if none.
Method Details
~
(void)
handle(error, exit = true)
Handle error instances
Prints the message to stderr and aborts the program with the corresponding error code, or 0 if none.
error = new Error('My Error')
shouldExit = false
resin.errors.handle(error, shouldExit)