Permalink
Browse files

correctly finger missing child deps in the error message

  • Loading branch information...
1 parent 2d1b248 commit b2387c674294642679fb9bb80c732a72ff9535b2 @indirect indirect committed Jul 24, 2011
Showing with 4 additions and 9 deletions.
  1. +3 −8 lib/bundler/resolver.rb
  2. +1 −1 spec/install/git_spec.rb
View
@@ -279,15 +279,10 @@ def resolve(reqs, activated)
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
View
@@ -403,7 +403,7 @@
gem "has_submodule"
end
G
- out.should =~ /Could not find gem 'submodule'/
+ out.should =~ /could not find gem 'submodule'/i
should_not_be_installed "has_submodule 1.0", :expect_err => true
end

0 comments on commit b2387c6

Please sign in to comment.