-
-
Save drbrain/c4b51e83bb0461887f5e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/rubygems/request_set.rb b/lib/rubygems/request_set.rb | |
index 9cde81d..3b026a1 100644 | |
--- a/lib/rubygems/request_set.rb | |
+++ b/lib/rubygems/request_set.rb | |
@@ -331,8 +331,11 @@ class Gem::RequestSet | |
unless match then | |
next if dep.type == :development and @development_shallow | |
next if @soft_missing | |
+ | |
+ request_spec_names = @requests.map { |r| r.spec.full_name } | |
+ | |
raise Gem::DependencyError, | |
- "Unresolved dependency found during sorting - #{dep} (requested by #{node.spec.full_name})" | |
+ "Unresolved dependency found during sorting - #{dep} (requested by #{node.spec.full_name}, have #{request_spec_names.join ', '})" | |
end | |
begin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment