Skip to content

Commit

Permalink
improved the error message
Browse files Browse the repository at this point in the history
  • Loading branch information
kohsuke committed Apr 13, 2011
1 parent cd0b23c commit ecdd3b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/hudson/plugins/ec2/EC2Cloud.java
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ protected FormValidation doTestConnection( URL ec2endpoint,
// check if this key exists
EC2PrivateKey pk = new EC2PrivateKey(privateKey);
if(pk.find(jec2)==null)
return FormValidation.error("The private key entered below isn't registered to EC2 (fingerprint is "+pk.getFingerprint()+")");
return FormValidation.error("The private key entered below isn't registered to this EC2 region (fingerprint is "+pk.getFingerprint()+")");
}

return FormValidation.ok(Messages.EC2Cloud_Success());
Expand Down

0 comments on commit ecdd3b9

Please sign in to comment.