Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[JENKINS-41987] Improved message.
(cherry picked from commit dbf5efa)
  • Loading branch information
jglick authored and olivergondza committed Mar 15, 2017
1 parent 7e9015d commit e2a8c0e
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -102,11 +102,11 @@ public JnlpSlaveAgentProtocol4() throws KeyStoreException, KeyManagementExceptio
// prepare our local identity and certificate
X509Certificate identityCertificate = InstanceIdentityProvider.RSA.getCertificate();
if (identityCertificate == null) {
throw new KeyStoreException("no X509Certificate found; perhaps instance-identity is missing or too old");
throw new KeyStoreException("JENKINS-41987: no X509Certificate found; perhaps instance-identity module is missing or too old");
}
RSAPrivateKey privateKey = InstanceIdentityProvider.RSA.getPrivateKey();
if (privateKey == null) {
throw new KeyStoreException("no RSAPrivateKey found; perhaps instance-identity is missing or too old");
throw new KeyStoreException("JENKINS-41987: no RSAPrivateKey found; perhaps instance-identity module is missing or too old");
}

// prepare our keyStore so we can provide our authentication
Expand Down

0 comments on commit e2a8c0e

Please sign in to comment.