Abort on error

This ensures the exit status 1, which is useful in scripts.
This commit is contained in:
Marco Pesenti Gritti 2014-08-21 23:58:08 +01:00
parent ee6789f62a
commit 647276da3e

View file

@ -3,6 +3,5 @@ require 'twine'
begin
Twine::Runner.run(ARGV)
rescue Twine::Error => e
STDERR.puts e.message
exit
abort e.message
end