未验证 提交 f529f8c1 编写于 作者: C congqixia 提交者: GitHub

Use fmt.Errorf instead of str concat in func.go (#16315)

Signed-off-by: NCongqi Xia <congqi.xia@zilliz.com>
上级 56c0ea9b
...@@ -172,7 +172,7 @@ func GetAttrByKeyFromRepeatedKV(key string, kvs []*commonpb.KeyValuePair) (strin ...@@ -172,7 +172,7 @@ func GetAttrByKeyFromRepeatedKV(key string, kvs []*commonpb.KeyValuePair) (strin
} }
} }
return "", errors.New("key " + key + " not found") return "", fmt.Errorf("key %s not found", key)
} }
// CheckCtxValid check if the context is valid // CheckCtxValid check if the context is valid
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册