summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2018-02-23 09:39:55 +0000
committerAlyssa Ross <hi@alyssa.is>2018-02-23 09:42:47 +0000
commitbcb11bf6b62c6fb75e9c1eace00717dc8b31cda4 (patch)
treee8157dbaba35c593533b953dc838360123d0de7f
parent3d8258586b0fab8899d9a6f801d301e8db4d3ba6 (diff)
downloadbundler-bcb11bf6b62c6fb75e9c1eace00717dc8b31cda4.tar.gz
Improve yanked gem error message
It makes more sense to say > update your bundle to a different version of foo than > update your bundle to a different version of foo (1.0)
-rw-r--r--lib/bundler/definition.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/definition.rb b/lib/bundler/definition.rb
index 0349af39f2..54def12653 100644
--- a/lib/bundler/definition.rb
+++ b/lib/bundler/definition.rb
@@ -175,7 +175,7 @@ module Bundler
raise GemNotFound, "Your bundle is locked to #{locked_gem}, but that version could not " \
"be found in any of the sources listed in your Gemfile. If you haven't changed sources, " \
"that means the author of #{locked_gem} has removed it. You'll need to update your bundle " \
- "to a different version of #{locked_gem} that hasn't been removed in order to install."
+ "to a different version of #{gem_name} that hasn't been removed in order to install."
end
unless specs["bundler"].any?
bundler = sources.metadata_source.specs.search(Gem::Dependency.new("bundler", VERSION)).last