Skip to content

Commit

Permalink
Add punctuation to exception comments
Browse files Browse the repository at this point in the history
Signed-off-by: Kyle Liberti <kliberti@redhat.com>
  • Loading branch information
kyguy committed Aug 5, 2024
1 parent b9d7fd5 commit cbfb9cb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,13 +137,13 @@ private static void validateHashLoginServiceApiUsersConfiguration(HashLoginServi
Role role = Role.fromString(parts[1].split(",")[1]);
if (entries.containsKey(username)) {
throw new InvalidConfigurationException("Duplicate username found: \"" + username + "\". "
+ "Cruise Control API credentials config must contain unique usernames");
+ "Cruise Control API credentials config must contain unique usernames.");
}
entries.put(username, new UserEntry(username, password, role));
} else {
throw new InvalidConfigurationException("Invalid configuration provided: \"" + line + "\". " +
"Cruise Control API credentials config must follow " +
"HashLoginService's file format `username: password [,rolename ...]`");
"HashLoginService's file format `username: password [,rolename ...]`.");
}
});
return entries;
Expand Down

0 comments on commit cbfb9cb

Please sign in to comment.