Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
szabgab committed Jul 8, 2021
1 parent 45b856b commit c314046
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions crystal/process.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,13 @@
{id: abort}
{i: abort}

{aside}
`abort` is the combination of printing to the `STDERR` and calling `exit` with an exit code.
{/aside}

![](examples/process/abort.cr)
![](examples/process/abort_code.cr)

* Print message to STDERR and exit with exit code 1 (see `$?` or `%ERROR_LEVEL%`)
* `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.


0 comments on commit c314046

Please sign in to comment.