Skip to content
Permalink
Browse files

[JENKINS-33318] @svanoort's comment was addressed

  • Loading branch information
recena
recena committed Apr 18, 2016
1 parent 643c7cd commit e32e6946dde44fe66f6b14fc54e764c88ddb3489
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/main/java/org/jenkinsci/plugins/github_branch_source/Endpoint.java
@@ -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

0 comments on commit e32e694

Please sign in to comment.
You can’t perform that action at this time.