Skip to content

Commit

Permalink
Merge pull request #34 from jenkinsci/typo
Browse files Browse the repository at this point in the history
Update messages
  • Loading branch information
damianszczepanik authored Feb 10, 2022
2 parents 1c4b6df + dd8e66e commit fe74226
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,15 +136,15 @@ public FormValidation doCheckLinkText(@QueryParameter String value) {
@Restricted(NoExternalUse.class)
public FormValidation doCheckLinkIcon(@QueryParameter String value) {
if (StringUtils.isBlank(value)) {
return FormValidation.warning("The provided icon is blank or empty. Defautl will used.");
return FormValidation.warning("The provided icon is blank or empty. Default will be used.");
}
FilePath imageFile = Jenkins.get().getRootPath().child(value);
try {
if (!imageFile.exists()) {
return FormValidation.error("Image does not exists: " + imageFile);
return FormValidation.error("Image does not exist: " + imageFile);
}
} catch (Exception e) {
return FormValidation.error(e, "Problems using link icon: " + value);
return FormValidation.error(e, "Problem with link icon: " + value);
}
return FormValidation.ok();
}
Expand Down

0 comments on commit fe74226

Please sign in to comment.