diff options
author | Andre Arko <andre@arko.net> | 2011-05-27 17:45:46 -0700 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2011-05-27 17:45:46 -0700 |
commit | f03fa7427819dbac8460fd4f9300416d8aae410c (patch) | |
tree | ace6c4abafc380e23c36e19d803e251c4d350c17 | |
parent | 571e3e9c42cf06af7bd2a8c83a862fb62799f626 (diff) | |
download | bundler-f03fa7427819dbac8460fd4f9300416d8aae410c.tar.gz |
Suggest bundle install if setup raises GemNotFound
-rw-r--r-- | lib/bundler/setup.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/bundler/setup.rb b/lib/bundler/setup.rb index dd658cd8..d5770977 100644 --- a/lib/bundler/setup.rb +++ b/lib/bundler/setup.rb @@ -8,6 +8,9 @@ if Bundler::SharedHelpers.in_bundle? rescue Bundler::BundlerError => e puts "\e[31m#{e.message}\e[0m" puts e.backtrace.join("\n") if ENV["DEBUG"] + if Bundler::GemNotFound === e + puts "\e[33mRun `bundle install` to install missing gems.\e[0m" + end exit e.status_code end else |