Skip to content

Commit

Permalink
[fix][cli] Fix error messages in CmdNameSpaces and CmdTopics (apache#…
Browse files Browse the repository at this point in the history
  • Loading branch information
JooHyukKim authored Jul 4, 2023
1 parent 4d13bdb commit 886f535
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2321,14 +2321,14 @@ public boolean isS3Driver(String driver) {

public boolean positiveCheck(String paramName, long value) {
if (value <= 0) {
throw new ParameterException(paramName + " is not be negative or 0!");
throw new ParameterException(paramName + " cannot be less than or equal to 0!");
}
return true;
}

public boolean maxValueCheck(String paramName, long value, long maxValue) {
if (value > maxValue) {
throw new ParameterException(paramName + " is not bigger than " + maxValue + "!");
throw new ParameterException(paramName + " cannot be greater than " + maxValue + "!");
}
return true;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2198,14 +2198,14 @@ public boolean isS3Driver(String driver) {

public boolean positiveCheck(String paramName, long value) {
if (value <= 0) {
throw new ParameterException(paramName + " is not be negative or 0!");
throw new ParameterException(paramName + " cannot be less than or equal to 0!");
}
return true;
}

public boolean maxValueCheck(String paramName, long value, long maxValue) {
if (value > maxValue) {
throw new ParameterException(paramName + " is not bigger than " + maxValue + "!");
throw new ParameterException(paramName + " cannot be greater than " + maxValue + "!");
}
return true;
}
Expand Down

0 comments on commit 886f535

Please sign in to comment.