diff options
author | Carlhuda <carlhuda@engineyard.com> | 2010-02-01 16:43:33 -0800 |
---|---|---|
committer | Carlhuda <carlhuda@engineyard.com> | 2010-02-01 16:43:33 -0800 |
commit | de5054af4069a93702763d70704b074202f2bf7d (patch) | |
tree | f266f5a363e22c2687aba4c0fee9123098357612 /bin/bundle | |
parent | 98e8489593aa7ebaa41f3c5e3958b402e35c74d6 (diff) | |
download | bundler-de5054af4069a93702763d70704b074202f2bf7d.tar.gz |
Rescue all Bundler exceptions and exit with appropriate error code
Diffstat (limited to 'bin/bundle')
-rw-r--r-- | bin/bundle | 7 |
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 |