mirror of https://github.com/milvus-io/milvus.git
[skip e2e]Improve getCollectionID error log (#14964)
Signed-off-by: xige-16 <xi.ge@zilliz.com>pull/14968/head
parent
9dbb37c7ea
commit
f808390f32
|
@ -252,7 +252,7 @@ func (colReplica *collectionReplica) getCollectionByID(collectionID UniqueID) (*
|
|||
func (colReplica *collectionReplica) getCollectionByIDPrivate(collectionID UniqueID) (*Collection, error) {
|
||||
collection, ok := colReplica.collections[collectionID]
|
||||
if !ok {
|
||||
return nil, errors.New("collection hasn't been loaded or has been released, collection id =" + strconv.FormatInt(collectionID, 10))
|
||||
return nil, fmt.Errorf("collection hasn't been loaded or has been released, collection id = %d", collectionID)
|
||||
}
|
||||
|
||||
return collection, nil
|
||||
|
|
Loading…
Reference in New Issue