[skip e2e]Improve getCollectionID error log (#14964)

Signed-off-by: xige-16 <xi.ge@zilliz.com>
pull/14968/head
xige-16 2022-01-06 23:43:22 +08:00 committed by GitHub
parent 9dbb37c7ea
commit f808390f32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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