From a8eab2d933380d40320025b76b025a48249cbab7 Mon Sep 17 00:00:00 2001 From: Josh Rickmar Date: Tue, 21 Nov 2023 20:58:09 +0000 Subject: [PATCH] wire-mix: add max count to an error message --- wire/msgmixcm.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wire/msgmixcm.go b/wire/msgmixcm.go index 0e9559872a..b1e0d2d9b5 100644 --- a/wire/msgmixcm.go +++ b/wire/msgmixcm.go @@ -110,7 +110,8 @@ func (msg *MsgMixCM) writeMessageNoSignature(op string, w io.Writer, pver uint32 count := len(msg.SeenDCs) if count > MaxPrevMixMsgs { - msg := fmt.Sprintf("too many previous referenced messages [%v]", count) + msg := fmt.Sprintf("too many previous referenced messages [count %v, max %v]", + count, MaxPrevMixMsgs) return messageError(op, ErrTooManyPrevMixMsgs, msg) }