Skip to content

Commit

Permalink
[#5927] improvement(CLI): fix cli get multiple "Malformed entity name."
Browse files Browse the repository at this point in the history
change the variable name.
  • Loading branch information
Abyss-lord committed Dec 23, 2024
1 parent 6f7a612 commit 8c33981
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions clients/cli/src/main/java/org/apache/gravitino/cli/FullName.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ public class FullName {
private final CommandLine line;
private String metalakeEnv;
private boolean matalakeSet = false;
private boolean isMissingNameInfoVisible = true;
private boolean isMalformedInfoVisible = true;
private boolean hasDisplayedMissingNameInfo = true;
private boolean hasDisplayedMalformedInfo = true;

/**
* Constructor for the {@code FullName} class.
Expand Down Expand Up @@ -228,16 +228,16 @@ public boolean hasColumnName() {
}

private void showMissingNameInfo() {
if (isMissingNameInfoVisible) {
if (hasDisplayedMissingNameInfo) {
System.err.println(ErrorMessages.MISSING_NAME);
isMissingNameInfoVisible = false;
hasDisplayedMissingNameInfo = false;
}
}

private void showMalformedInfo() {
if (isMalformedInfoVisible) {
if (hasDisplayedMalformedInfo) {
System.err.println(ErrorMessages.MALFORMED_NAME);
isMalformedInfoVisible = false;
hasDisplayedMalformedInfo = false;
}
}
}

0 comments on commit 8c33981

Please sign in to comment.