[JENKINS-41987] Improved message.

(cherry picked from commit dbf5efa6ae)
This commit is contained in:
Jesse Glick authored and Oliver Gondža committed 2017-03-15 11:58:51 +01:00
1 parent 7e9015d3ea
commit e2a8c0efd1
1 file changed
+2 -2
@@ -102,11 +102,11 @@ public class JnlpSlaveAgentProtocol4 extends AgentProtocol {
// 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