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 begin
Twine::Runner.run(ARGV) Twine::Runner.run(ARGV)
rescue Twine::Error => e rescue Twine::Error => e
STDERR.puts e.message abort e.message
exit
end end