diff --git a/lib/rubygems/specification_policy.rb b/lib/rubygems/specification_policy.rb index c9b1da2177..069182b543 100644 --- a/lib/rubygems/specification_policy.rb +++ b/lib/rubygems/specification_policy.rb @@ -309,8 +309,7 @@ duplicate dependency on #{dep}, (#{prev.requirement}) use: end unless Array === val and val.all? {|x| x.kind_of?(klass)} - raise(Gem::InvalidSpecificationException, - "#{field} must be an Array of #{klass}") + error "#{field} must be an Array of #{klass}" end end