From b0d2c30715e55a50878473bcd5cd4a61813d2a23 Mon Sep 17 00:00:00 2001 From: "Md. Mamun Hossain" Date: Thu, 12 Dec 2024 15:18:53 +0600 Subject: [PATCH] improved-metalake-erro-message --- .../apache/gravitino/dto/requests/MetalakeCreateRequest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/org/apache/gravitino/dto/requests/MetalakeCreateRequest.java b/common/src/main/java/org/apache/gravitino/dto/requests/MetalakeCreateRequest.java index 5e993a3f709..de967eaee3d 100644 --- a/common/src/main/java/org/apache/gravitino/dto/requests/MetalakeCreateRequest.java +++ b/common/src/main/java/org/apache/gravitino/dto/requests/MetalakeCreateRequest.java @@ -74,6 +74,6 @@ public MetalakeCreateRequest(String name, String comment, Map pr @Override public void validate() throws IllegalArgumentException { Preconditions.checkArgument( - StringUtils.isNotBlank(name), "\"name\" field is required and cannot be empty"); + StringUtils.isNotBlank(name), "\"name\" field is required. Please provide a valid name for the Metalake. It cannot be empty or only whitespace."); } }