From 299d1bbec765b36492a69bdeca77b9f2ffe111b8 Mon Sep 17 00:00:00 2001 From: lixinguo Date: Thu, 21 Nov 2024 17:51:01 +0800 Subject: [PATCH] enhance: error msg Signed-off-by: lixinguo --- internal/distributed/proxy/httpserver/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/distributed/proxy/httpserver/utils.go b/internal/distributed/proxy/httpserver/utils.go index 0444a235463f1..0a6f9bfc15548 100644 --- a/internal/distributed/proxy/httpserver/utils.go +++ b/internal/distributed/proxy/httpserver/utils.go @@ -1531,7 +1531,7 @@ func convertDefaultValue(value interface{}, dataType schemapb.DataType) (*schema } return data, nil default: - return nil, merr.WrapErrParameterInvalidMsg(fmt.Sprintf("Unexpected default value type: %d", dataType)) + return nil, merr.WrapErrParameterInvalidMsg(fmt.Sprintf("Unexpected default value type: %s", dataType.String())) } }