From ae6d95475d51b8f43019bc982c451327c40d8f09 Mon Sep 17 00:00:00 2001 From: wei liu Date: Wed, 19 Jun 2024 10:58:00 +0800 Subject: [PATCH] enhance: Refine name rule check error msg (#33815) (#33901) pr: #33815 Signed-off-by: Wei Liu --- internal/proxy/util.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/proxy/util.go b/internal/proxy/util.go index 5facdf1d240e5..b85ac035a2da4 100644 --- a/internal/proxy/util.go +++ b/internal/proxy/util.go @@ -277,7 +277,7 @@ func validateFieldName(fieldName string) error { for i := 1; i < fieldNameSize; i++ { c := fieldName[i] if c != '_' && !isAlpha(c) && !isNumber(c) { - msg := invalidMsg + "Field name cannot only contain numbers, letters, and underscores." + msg := invalidMsg + "Field name can only contain numbers, letters, and underscores." return merr.WrapErrFieldNameInvalid(fieldName, msg) } } @@ -1079,7 +1079,7 @@ func validateIndexName(indexName string) error { for i := 1; i < indexNameSize; i++ { c := indexName[i] if c != '_' && !isAlpha(c) && !isNumber(c) { - msg := invalidMsg + "Index name cannot only contain numbers, letters, and underscores." + msg := invalidMsg + "Index name can only contain numbers, letters, and underscores." return errors.New(msg) } }