Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Abort

  • abort

abort is the combination of printing to the STDERR and calling exit with an exit code.

abort("Something bad happened")
abort("Something bad happened", 3)
  • abort prints a message to STDERR and exit with exit code 1 (see $? or %ERROR_LEVEL%)
  • Optionally we can supply the exit code as well.