diff options
Diffstat (limited to 'code/snippets/abort_message.rb')
| -rw-r--r-- | code/snippets/abort_message.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/code/snippets/abort_message.rb b/code/snippets/abort_message.rb new file mode 100644 index 0000000..131c055 --- /dev/null +++ b/code/snippets/abort_message.rb @@ -0,0 +1,4 @@ +# You can pass a message to Kernel#abort. This message will be printed +# to STDERR before the process exits. +abort "Something went horribly wrong." + |
