File: errors.coffee

Defined in: lib/resin/errors

Method Summary

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)

Parameters:

  • error ( Error ) the error instance
  • exit ( Boolean ) whether to exit or not (defaults to true)

    Quickly fuzzy find classes, mixins, methods, file:

    Control the navigation frame:

    You can focus and blur the search input: