Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor phrasing change in a JGit specific exception message #1115

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3039,13 +3039,13 @@
@Override
public void config(ConfigLevel configLevel, String key, String value) throws GitException, InterruptedException {
if (configLevel != ConfigLevel.LOCAL) {
throw new GitException("jgit provider do not support not local level config");
throw new GitException("JGit only supports local level config");
}
// we support key in the format section[.subsection].name
String[] keys = key.split("\\.");
String section, subsection = null, name;
if (keys.length < 2 || keys.length > 3) {
throw new GitException("key must be in the format section[.subsection].name");
throw new GitException("key '" + key + "' not in expected format of 'section[.subsection].name'");

Check warning on line 3048 in src/main/java/org/jenkinsci/plugins/gitclient/JGitAPIImpl.java

View check run for this annotation

ci.jenkins.io / Code Coverage

Not covered lines

Lines 3042-3048 are not covered by tests
}
if (keys.length == 2) {
section = keys[0];
Expand Down