This is an automated email from the ASF dual-hosted git repository.
jmclean pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/gravitino.git
The following commit(s) were added to refs/heads/main by this push:
new f7656bec17 [#5930] improvement(CLI): improve unknown tag output.
(#5978)
f7656bec17 is described below
commit f7656bec17ed51389206f8044489d543971f419e
Author: Lord of Abyss <[email protected]>
AuthorDate: Thu Dec 26 11:09:39 2024 +0800
[#5930] improvement(CLI): improve unknown tag output. (#5978)
### 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
---
.../cli/src/main/java/org/apache/gravitino/cli/commands/TagEntity.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/clients/cli/src/main/java/org/apache/gravitino/cli/commands/TagEntity.java
b/clients/cli/src/main/java/org/apache/gravitino/cli/commands/TagEntity.java
index 55bb4b7f43..d2d1cbbe18 100644
--- a/clients/cli/src/main/java/org/apache/gravitino/cli/commands/TagEntity.java
+++ b/clients/cli/src/main/java/org/apache/gravitino/cli/commands/TagEntity.java
@@ -98,7 +98,7 @@ public class TagEntity extends Command {
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);
}