aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bundler/setup.rb
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2011-05-27 17:45:46 -0700
committerAndre Arko <andre@arko.net>2011-05-27 17:45:46 -0700
commitf03fa7427819dbac8460fd4f9300416d8aae410c (patch)
treeace6c4abafc380e23c36e19d803e251c4d350c17 /lib/bundler/setup.rb
parent571e3e9c42cf06af7bd2a8c83a862fb62799f626 (diff)
downloadbundler-f03fa7427819dbac8460fd4f9300416d8aae410c.tar.gz
Suggest bundle install if setup raises GemNotFound
Diffstat (limited to 'lib/bundler/setup.rb')
-rw-r--r--lib/bundler/setup.rb3
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