From fc10f35f3d4054fa035603b83bb43de51e9af98b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Fri, 29 May 2020 15:47:46 +0200 Subject: [rubygems/rubygems] Reuse `error` helper https://github.com/rubygems/rubygems/commit/3a44b6f846 --- lib/rubygems/specification_policy.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 -- cgit v1.2.3