summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorCarlhuda <carlhuda@engineyard.com>2010-02-01 16:43:33 -0800
committerCarlhuda <carlhuda@engineyard.com>2010-02-01 16:43:33 -0800
commitde5054af4069a93702763d70704b074202f2bf7d (patch)
treef266f5a363e22c2687aba4c0fee9123098357612 /bin
parent98e8489593aa7ebaa41f3c5e3958b402e35c74d6 (diff)
downloadbundler-de5054af4069a93702763d70704b074202f2bf7d.tar.gz
Rescue all Bundler exceptions and exit with appropriate error code
Diffstat (limited to 'bin')
-rw-r--r--bin/bundle7
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/bundle b/bin/bundle
index c534a3b627..d11614be86 100644
--- a/bin/bundle
+++ b/bin/bundle
@@ -1,3 +1,8 @@
require 'bundler/cli'
-Bundler::CLI.start \ No newline at end of file
+begin
+ Bundler::CLI.start
+rescue Bundler::BundlerError => e
+ puts e.message
+ exit e.status_code
+end \ No newline at end of file