Is there a one line function call that quits the program and displays a message? I know in Perl it\'s as simple as:
die(\"Message goes here\")
The abort function does this. For example:
abort
abort("Message goes here")
Note: the abort message will be written to STDERR as opposed to puts which will write to STDOUT.
STDERR
puts
STDOUT