mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
Use fmt.Errorf instead of str concat in func.go (#16315)
Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
This commit is contained in:
parent
56c0ea9b1d
commit
f529f8c1fc
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user