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 40b1253265 [Imp] Exit with correct error message in CreateCatalog.java
(#8364)
40b1253265 is described below
commit 40b1253265d16eab75693900d59d55f37a9c5097
Author: Raj Gupta <[email protected]>
AuthorDate: Sun Aug 31 07:30:21 2025 +0530
[Imp] Exit with correct error message in CreateCatalog.java (#8364)
### What changes were proposed in this pull request?
(Please outline the changes and how this PR fixes the issue.)
### Why are the changes needed?
(Please clarify why the changes are needed. For instance,
1. If you propose a new API, clarify the use case for a new API.
2. If you fix a bug, describe the bug.)
Fix: #8342
### Does this PR introduce _any_ user-facing change?
(Please list the user-facing changes introduced by your change,
including
1. Change in user-facing APIs.
2. Addition or removal of property keys.)
### How was this patch tested?
(Please test your changes, and provide instructions on how to test it:
1. If you add a feature or fix a bug, add a test to cover your changes.
2. If you fix a flaky test, repeat it for many times to prove it works.)
---
.../src/main/java/org/apache/gravitino/cli/commands/CreateCatalog.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/clients/cli/src/main/java/org/apache/gravitino/cli/commands/CreateCatalog.java
b/clients/cli/src/main/java/org/apache/gravitino/cli/commands/CreateCatalog.java
index af90cda73b..bd9db50065 100644
---
a/clients/cli/src/main/java/org/apache/gravitino/cli/commands/CreateCatalog.java
+++
b/clients/cli/src/main/java/org/apache/gravitino/cli/commands/CreateCatalog.java
@@ -71,7 +71,7 @@ public class CreateCatalog extends Command {
comment,
properties);
} catch (NoSuchMetalakeException err) {
- exitWithError(ErrorMessages.METALAKE_EXISTS);
+ exitWithError(ErrorMessages.UNKNOWN_METALAKE);
} catch (CatalogAlreadyExistsException err) {
exitWithError(ErrorMessages.CATALOG_EXISTS);
} catch (Exception exp) {