From 5d236a989f2f582800a754114224465784d662a8 Mon Sep 17 00:00:00 2001 From: Misty De Meo Date: Tue, 2 Aug 2016 11:20:37 +1000 Subject: doctor: gems not being installed isn't fatal --- lib/bundler/cli.rb | 3 --- lib/bundler/cli/doctor.rb | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) (limited to 'lib/bundler') diff --git a/lib/bundler/cli.rb b/lib/bundler/cli.rb index 5e568995d0..a20c76b30f 100644 --- a/lib/bundler/cli.rb +++ b/lib/bundler/cli.rb @@ -479,9 +479,6 @@ module Bundler Doctor scans the OS dependencies of each of the gems requested in the Gemfile. If missing dependencies are detected, Bundler prints them and exits status 1. Otherwise, Bundler prints a success message and exits with a status of 0. - - The bundle's gem dependencies must all be installed to run this command; if - they are not, Bundler prints an error message and exits with a status of 2. D method_option "gemfile", :type => :string, :banner => "Use the specified gemfile instead of Gemfile" diff --git a/lib/bundler/cli/doctor.rb b/lib/bundler/cli/doctor.rb index df49315b45..b8aac1a320 100644 --- a/lib/bundler/cli/doctor.rb +++ b/lib/bundler/cli/doctor.rb @@ -66,9 +66,9 @@ module Bundler not_installed = definition.missing_specs raise GemNotFound if not_installed.any? rescue GemNotFound - Bundler.ui.error "This bundle's gems must be installed to run this command." + Bundler.ui.warn "This bundle's gems must be installed to run this command." Bundler.ui.warn "Install missing gems with `bundle install`." - exit 2 + exit 0 end definition.specs.each do |spec| -- cgit v1.2.1