storagenode/orders/ordersfile: Fix error message wrong var

Fix the error message reported by a wrong order size due to passing the
wrong variable to the interpolation pattern.

Change-Id: Ic0059615c60cfa33a26d4aeb0ebda5e586f0df05
This commit is contained in:
Ivan Fraixedes 2020-11-17 15:22:27 +01:00
parent ac94333422
commit fa95c6bbb9
No known key found for this signature in database
GPG Key ID: 042B474597F96DB7

View File

@ -109,7 +109,7 @@ func (of *fileV0) ReadOne() (info *Info, err error) {
}
orderSize := binary.LittleEndian.Uint32(sizeBytes[:])
if orderSize > uint32(math.MaxInt32) {
return nil, ErrEntryCorrupt.New("invalid order's size; %d is over the maximum %d", limitSize, math.MaxInt32)
return nil, ErrEntryCorrupt.New("invalid order's size; %d is over the maximum %d", orderSize, math.MaxInt32)
}
orderSerialized := make([]byte, orderSize)