Skip to content

Commit 92438c9

Browse files
authored
Merge pull request #79 from gdgib/G2-1780-JoinHuman
G2-1780 Standard method for human readable list joins
2 parents 2721cf5 + dbc9b40 commit 92438c9

File tree

1 file changed

+1
-1
lines changed
  • bd-build/src/main/java/com/g2forge/bulldozer/build

1 file changed

+1
-1
lines changed

bd-build/src/main/java/com/g2forge/bulldozer/build/Release.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ public IExit invoke() throws Throwable {
208208

209209
{ // Report a nice clean error if any of the target projects are unknown
210210
final Set<String> unknownProjects = HCollection.difference(targets, getContext().getNameToProject().keySet());
211-
if (!unknownProjects.isEmpty()) throw new IllegalArgumentException(String.format("One or more target projects to release (%1$s) are unknown!", unknownProjects.stream().collect(HCollector.joining(", ", ", & "))));
211+
if (!unknownProjects.isEmpty()) throw new IllegalArgumentException(String.format("One or more target projects to release (%1$s) are unknown!", unknownProjects.stream().collect(HCollector.joiningHuman())));
212212
}
213213

214214
// Compute the order in which to release the public projects

0 commit comments

Comments
 (0)