diff options
author | Andre Arko <andre@arko.net> | 2010-04-03 00:37:00 -0700 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2010-04-03 00:37:17 -0700 |
commit | 6f45141732f13706ec0118ad92cd35e5ed1f4c40 (patch) | |
tree | 7d21413a6adf89c56e518b1e0a0cfd73cb345591 /lib/bundler/setup.rb | |
parent | 025cc0afc4395866694c1addc3634aa25232f87f (diff) | |
download | bundler-6f45141732f13706ec0118ad92cd35e5ed1f4c40.tar.gz |
Report errors from bundler/setup.rb without backtraces
Closes #243
Diffstat (limited to 'lib/bundler/setup.rb')
-rw-r--r-- | lib/bundler/setup.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/bundler/setup.rb b/lib/bundler/setup.rb index 09f8a56fe5..645320c011 100644 --- a/lib/bundler/setup.rb +++ b/lib/bundler/setup.rb @@ -9,6 +9,11 @@ if Bundler::SharedHelpers.in_bundle? else require 'rubygems' require 'bundler' - Bundler.setup + begin + Bundler.setup + rescue Bundler::BundlerError => e + puts "\e[31m#{e.message}\e[0m" + exit e.status_code + end end end
\ No newline at end of file |