This is an automated email from the ASF dual-hosted git repository.

yuqi4733 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 a1f3587b3b [#7346] fix(catalogs): modify the error message in model 
catalog (#7347)
a1f3587b3b is described below

commit a1f3587b3b415a772990dbeced9b89331d3512ff
Author: Kyle Lin <[email protected]>
AuthorDate: Tue Jun 10 09:15:28 2025 +0800

    [#7346] fix(catalogs): modify the error message in model catalog (#7347)
    
    ### What changes were proposed in this pull request?
    
    updates the error message in
    
`catalogs/catalog-model/src/main/java/org/apache/gravitino/catalog/model/ModelCatalogOperations.java`
    to correctly display.
    
    ### Why are the changes needed?
    
    Fixes #7346
    
    ### Does this PR introduce any user-facing change?
    
    No.
    
    ### How was this patch tested?
    
    - Ran `./gradlew clean build`.
---
 .../java/org/apache/gravitino/catalog/model/ModelCatalogOperations.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/catalogs/catalog-model/src/main/java/org/apache/gravitino/catalog/model/ModelCatalogOperations.java
 
b/catalogs/catalog-model/src/main/java/org/apache/gravitino/catalog/model/ModelCatalogOperations.java
index a1c1858888..ee83ae4d6d 100644
--- 
a/catalogs/catalog-model/src/main/java/org/apache/gravitino/catalog/model/ModelCatalogOperations.java
+++ 
b/catalogs/catalog-model/src/main/java/org/apache/gravitino/catalog/model/ModelCatalogOperations.java
@@ -260,7 +260,7 @@ public class ModelCatalogOperations extends 
ManagedSchemaOperations
       throw new RuntimeException("Failed to link model version " + ident, e);
     } catch (EntityAlreadyExistsException e) {
       throw new ModelVersionAliasesAlreadyExistException(
-          e, "Model version aliases %s already exist", ident);
+          e, "Model version alias already exists in %s", ident);
     } catch (NoSuchEntityException e) {
       throw new NoSuchModelException(e, "Model %s does not exist", ident);
     }

Reply via email to