Skip to content

Commit

Permalink
[#5930] improvement(CLI): improve unknown tag output. (#5978)
Browse files Browse the repository at this point in the history
### What changes were proposed in this pull request?

Improve output when CLI add an unknown tags.

### Why are the changes needed?

Fix: #5930 

### Does this PR introduce _any_ user-facing change?

NO

### How was this patch tested?

local test
  • Loading branch information
Abyss-lord authored Dec 26, 2024
1 parent 304ef70 commit f7656be
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 f7656be

Please sign in to comment.