Fix an error message (#20403)

Signed-off-by: yhmo <yihua.mo@zilliz.com>

Signed-off-by: yhmo <yihua.mo@zilliz.com>
This commit is contained in:
groot 2022-11-09 14:49:03 +08:00 committed by GitHub
parent e5419b3bc7
commit 39a6397043
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -741,8 +741,10 @@ func (mt *MetaTable) GetPartitionByName(collID UniqueID, partitionName string, t
}
}
return common.InvalidPartitionID, fmt.Errorf("partition ID not found for partition name %s in collection %d",
partitionName, collID)
log.Error("partition ID not found for partition name", zap.String("partitionName", partitionName),
zap.Int64("collectionID", collID), zap.String("collectionName", coll.Name))
return common.InvalidPartitionID, fmt.Errorf("partition ID not found for partition name '%s' in collection '%s'",
partitionName, coll.Name)
}
// AddCredential add credential