Skip to content

Commit

Permalink
Handle various errors from doValidateRepositoryUrlAndCredentials
Browse files Browse the repository at this point in the history
  • Loading branch information
jglick committed Oct 21, 2024
1 parent 98e3d8a commit 1e6b2e1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2155,7 +2155,7 @@ public FormValidation doValidateRepositoryUrlAndCredentials(
} finally {
Connector.release(github);
}
} catch (IOException e) {
} catch (Exception e) {

Check warning on line 2158 in src/main/java/org/jenkinsci/plugins/github_branch_source/GitHubSCMSource.java

View check run for this annotation

ci.jenkins.io / Code Coverage

Not covered line

Line 2158 is not covered by tests
return FormValidation.error(e, "Error validating repository information. " + sb.toString());
}
return FormValidation.ok(sb.toString());
Expand Down

0 comments on commit 1e6b2e1

Please sign in to comment.