Skip to content

Instantly share code, notes, and snippets.

@drbrain
Last active August 29, 2015 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drbrain/c4b51e83bb0461887f5e to your computer and use it in GitHub Desktop.
Save drbrain/c4b51e83bb0461887f5e to your computer and use it in GitHub Desktop.
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