diff --git a/lib/rubygems.rb b/lib/rubygems.rb index 2f8c73972f..a631cde8bf 100644 --- a/lib/rubygems.rb +++ b/lib/rubygems.rb @@ -1122,7 +1122,7 @@ An Array (#{env.inspect}) was passed in from #{caller[3]} end rescue Bundler::BundlerError => e warn e.message - warn "You may need to `gem install -g` to install missing gems" + warn "You may need to `bundle install` to install missing gems" warn "" end end diff --git a/test/rubygems/test_gem.rb b/test/rubygems/test_gem.rb index d34aad78e7..0d4b1571ca 100644 --- a/test/rubygems/test_gem.rb +++ b/test/rubygems/test_gem.rb @@ -1975,7 +1975,7 @@ class TestGem < Gem::TestCase expected = <<-EXPECTED Could not find gem 'a' in locally installed gems. -You may need to `gem install -g` to install missing gems +You may need to `bundle install` to install missing gems EXPECTED