summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2010-04-02 23:43:45 -0700
committerAndre Arko <andre@arko.net>2010-04-02 23:43:45 -0700
commitc5850c968d658946311b195b631db93aa0198c26 (patch)
tree3c5416d97c2861eae9506bfd73fd13ed012e9a28 /bin
parent1951e724238c15c711a5e84d07270118dd092230 (diff)
downloadbundler-c5850c968d658946311b195b631db93aa0198c26.tar.gz
Trap INT and quit gracefully
Diffstat (limited to 'bin')
-rw-r--r--bin/bundle3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/bundle b/bin/bundle
index 1877540982..d2e50814b5 100644
--- a/bin/bundle
+++ b/bin/bundle
@@ -14,4 +14,7 @@ begin
rescue Bundler::BundlerError => e
Bundler.ui.error e.message
exit e.status_code
+rescue Interrupt
+ Bundler.ui.error "\nQuitting..."
+ exit 1
end \ No newline at end of file