diff options
author | Alyssa Ross <hi@alyssa.is> | 2018-02-23 09:39:55 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2018-02-23 09:42:47 +0000 |
commit | bcb11bf6b62c6fb75e9c1eace00717dc8b31cda4 (patch) | |
tree | e8157dbaba35c593533b953dc838360123d0de7f /lib/bundler/definition.rb | |
parent | 3d8258586b0fab8899d9a6f801d301e8db4d3ba6 (diff) | |
download | bundler-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)
Diffstat (limited to 'lib/bundler/definition.rb')
-rw-r--r-- | lib/bundler/definition.rb | 2 |
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 |