Skip to content

Commit

Permalink
[JENKINS-33318] @svanoort's comment was addressed
Browse files Browse the repository at this point in the history
  • Loading branch information
recena committed Apr 18, 2016
1 parent 643c7cd commit e32e694
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -121,10 +121,10 @@ public FormValidation doCheckApiUri(@QueryParameter String apiUri) {
return FormValidation.ok("GitHub Enterprise server verified");
} catch (MalformedURLException mue) {
// For example: https:/api.github.com
LOGGER.log(Level.WARNING, "Trying to configure a GitHub Enterprise server: " + apiUri);
return FormValidation.error("This does not look like a GitHub Enterprise API endpoint");
LOGGER.log(Level.WARNING, "Trying to configure a GitHub Enterprise server: " + apiUri, mue.getCause());
return FormValidation.error("This does not look like a GitHub Enterprise API endpoint (malformed URL)");
} catch (JsonParseException jpe) {
LOGGER.log(Level.WARNING, "Trying to configure a GitHub Enterprise server: " + apiUri);
LOGGER.log(Level.WARNING, "Trying to configure a GitHub Enterprise server: " + apiUri, jpe.getCause());
return FormValidation.error("This does not look like a GitHub Enterprise API endpoint");
} catch (FileNotFoundException fnt) {
// For example: https://github.mycompany.com/server/api/v3/ gets a FileNotFoundException
Expand Down

0 comments on commit e32e694

Please sign in to comment.