From cea8d1d589fafafbc80a31c0d7c0df439145a390 Mon Sep 17 00:00:00 2001 From: pancx Date: Wed, 25 Dec 2024 11:03:31 +0800 Subject: [PATCH] [#5930] improvement(CLI): improve unknown tag output. Improve output when CLI add an unknown tags. --- .../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 55bb4b7f436..d2d1cbbe18f 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 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); }