提交 b73177a0 编写于 作者: A Andre Arko 提交者: wycats

Squash backtraces from Bundler.setup

上级 961aa70e
......@@ -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
\ No newline at end of file
rescue Bundler::GemNotFound => e
STDERR.puts e.message
STDERR.puts "Try running `bundle install`."
exit!
end if File.exist?(gemfile)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册