Skip to content

Commit

Permalink
Squash backtraces from Bundler.setup
Browse files Browse the repository at this point in the history
  • Loading branch information
indirect authored and wycats committed Apr 21, 2010
1 parent 961aa70 commit b73177a
Showing 1 changed file with 6 additions and 2 deletions.
Expand Up @@ -2,8 +2,12 @@

# Set up gems listed in the Gemfile.
gemfile = File.expand_path('../../Gemfile', __FILE__)
if File.exist?(gemfile)
begin
ENV['BUNDLE_GEMFILE'] = gemfile
require 'bundler'
Bundler.setup
end
rescue Bundler::GemNotFound => e
STDERR.puts e.message
STDERR.puts "Try running `bundle install`."
exit!
end if File.exist?(gemfile)

0 comments on commit b73177a

Please sign in to comment.