Abort


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

examples/process/abort.cr
abort("Something bad happened")

examples/process/abort_code.cr
abort("Something bad happened", 3)