From 188ee433b915b9a56df5dc5fdad02858fece7e41 Mon Sep 17 00:00:00 2001 From: wei liu Date: Mon, 17 Jun 2024 10:37:58 +0800 Subject: [PATCH] enhance: Refine name rule check error msg (#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 8982a17800ac..c16298c2f470 100644 --- a/internal/proxy/util.go +++ b/internal/proxy/util.go @@ -268,7 +268,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) } } @@ -1073,7 +1073,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) } }