aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2011-07-23 18:14:44 -0700
committerAndre Arko <andre@arko.net>2011-08-08 09:35:34 -0700
commitb2387c674294642679fb9bb80c732a72ff9535b2 (patch)
tree99064fdfb0c3a98a9d9ea3ddde31fcbbc5b7ee02 /lib
parent2d1b2488f802861ec89b93a0d199b632c5ed7691 (diff)
downloadbundler-b2387c674294642679fb9bb80c732a72ff9535b2.tar.gz
correctly finger missing child deps in the error message
Diffstat (limited to 'lib')
-rw-r--r--lib/bundler/resolver.rb11
1 files changed, 3 insertions, 8 deletions
diff --git a/lib/bundler/resolver.rb b/lib/bundler/resolver.rb
index 76d17803..0baf40f0 100644
--- a/lib/bundler/resolver.rb
+++ b/lib/bundler/resolver.rb
@@ -279,15 +279,10 @@ module Bundler
end
raise GemNotFound, message
else
- if @missing_gems[current] >= 5
- message = "Bundler could not find find gem #{current.required_by.last},"
- message << "which is required by gem #{current}."
- raise GemNotFound, message
- end
- @missing_gems[current] += 1
-
- debug { " Could not find #{current} by #{current.required_by.last}" }
@errors[current.name] = [nil, current]
+ message = "Bundler could not find gem '#{clean_req(current)}', "
+ message << "which is required by gem '#{clean_req(current.required_by.last)}.'"
+ raise GemNotFound, message
end
end