diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-11-03 12:31:51 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-11-03 12:31:51 +0000 |
commit | 67da45a1f3e660bcd37c67dd3794643da5035cb1 (patch) | |
tree | 42fed908116bbef3af970cadf917c174c54a74e4 /lib/rubygems | |
parent | 38caab29bc759be2694013fc3930116e64fcc1d4 (diff) | |
download | ruby-67da45a1f3e660bcd37c67dd3794643da5035cb1.tar.gz |
Merge rubygems-3.0.0.beta2.
* It enabled `USE_BUNDLER_FOR_GEMDEPS` for using gemdeps of rubygems.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65517 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rubygems')
-rw-r--r-- | lib/rubygems/request.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/rubygems/request.rb b/lib/rubygems/request.rb index d8d5d1bc31..b6674281d1 100644 --- a/lib/rubygems/request.rb +++ b/lib/rubygems/request.rb @@ -117,9 +117,11 @@ class Gem::Request "Certificate #{cert.subject} has an invalid purpose" when OpenSSL::X509::V_ERR_SELF_SIGNED_CERT_IN_CHAIN then "Root certificate is not trusted (#{cert.subject})" - when OpenSSL::X509::V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY, - OpenSSL::X509::V_ERR_UNABLE_TO_VERIFY_LEAF_SIGNATURE then + when OpenSSL::X509::V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY then "You must add #{cert.issuer} to your local trusted store" + when + OpenSSL::X509::V_ERR_UNABLE_TO_VERIFY_LEAF_SIGNATURE then + "Cannot verify certificate issued by #{cert.issuer}" end end |