From 647276da3ef171a4d5fca397a4079734a9ffbea6 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Thu, 21 Aug 2014 23:58:08 +0100 Subject: [PATCH] Abort on error This ensures the exit status 1, which is useful in scripts. --- bin/twine | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bin/twine b/bin/twine index 690f51f..da3cf27 100755 --- a/bin/twine +++ b/bin/twine @@ -3,6 +3,5 @@ require 'twine' begin Twine::Runner.run(ARGV) rescue Twine::Error => e - STDERR.puts e.message - exit + abort e.message end