[skip e2e]Improve addCollection error log (#14963)

Signed-off-by: xige-16 <xi.ge@zilliz.com>
This commit is contained in:
xige-16 2022-01-06 23:41:28 +08:00 committed by GitHub
parent 29e37e3379
commit 9dbb37c7ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -204,7 +204,7 @@ func (colReplica *collectionReplica) addCollection(collectionID UniqueID, schema
defer colReplica.mu.Unlock()
if ok := colReplica.hasCollectionPrivate(collectionID); ok {
return errors.New("collection has been loaded, id %d" + strconv.FormatInt(collectionID, 10))
return fmt.Errorf("collection has been loaded, id %d", collectionID)
}
var newCollection = newCollection(collectionID, schema)