mirror of https://github.com/milvus-io/milvus.git
Use fmt.Errorf instead of str concat in func.go (#16315)
Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>pull/16325/head
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…
Reference in New Issue