From fa95c6bbb9b3b84144565dfdf0b6f4009a26650d Mon Sep 17 00:00:00 2001 From: Ivan Fraixedes Date: Tue, 17 Nov 2020 15:22:27 +0100 Subject: [PATCH] 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 --- storagenode/orders/ordersfile/v0.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storagenode/orders/ordersfile/v0.go b/storagenode/orders/ordersfile/v0.go index 9527d5a57..bef943dc8 100644 --- a/storagenode/orders/ordersfile/v0.go +++ b/storagenode/orders/ordersfile/v0.go @@ -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)