Skip to content

Commit

Permalink
[apache#5930] improvement(CLI): improve unknown tag output.
Browse files Browse the repository at this point in the history
Improve output when CLI add an unknown tags.
  • Loading branch information
Abyss-lord committed Dec 25, 2024
1 parent a58b7f8 commit cea8d1d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public void handle() {
exitWithError(exp.getMessage());
}

String all = String.join(",", tagsToAdd);
String all = tagsToAdd.length == 0 ? "nothing" : String.join(",", tagsToAdd);

System.out.println(entity + " now tagged with " + all);
}
Expand Down

0 comments on commit cea8d1d

Please sign in to comment.