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:
parent
ac94333422
commit
fa95c6bbb9
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user