[skip e2e]Improve getSegmentByIDPrivate log format (#15028)

Signed-off-by: xige-16 <xi.ge@zilliz.com>
pull/15061/head
xige-16 2022-01-10 10:11:34 +08:00 committed by GitHub
parent 43b09c83d1
commit 97ea9786e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -579,7 +579,7 @@ func (colReplica *collectionReplica) getSegmentByID(segmentID UniqueID) (*Segmen
func (colReplica *collectionReplica) getSegmentByIDPrivate(segmentID UniqueID) (*Segment, error) {
segment, ok := colReplica.segments[segmentID]
if !ok {
return nil, errors.New("cannot find segment in QueryNode, id = " + strconv.FormatInt(segmentID, 10))
return nil, fmt.Errorf("cannot find segment %d in QueryNode", segmentID)
}
return segment, nil