1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[rubygems/rubygems] Reuse error helper

https://github.com/rubygems/rubygems/commit/3a44b6f846
This commit is contained in:
David Rodríguez 2020-05-29 15:47:46 +02:00 committed by Hiroshi SHIBATA
parent 3cfe190099
commit fc10f35f3d
Notes: git 2020-06-05 07:33:36 +09:00

View file

@ -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