From 06389f5e923a754c40fc8e8bd9ae59b0951f9df3 Mon Sep 17 00:00:00 2001 From: Matej Pavlovic Date: Thu, 24 Nov 2022 09:41:46 +0100 Subject: [PATCH] Add epoch number to new membership error message Signed-off-by: Matej Pavlovic --- pkg/iss/iss.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/iss/iss.go b/pkg/iss/iss.go index e16b97c39..a482d8229 100644 --- a/pkg/iss/iss.go +++ b/pkg/iss/iss.go @@ -499,7 +499,7 @@ func (iss *ISS) applyNewConfig(config *eventpb.NewConfig) (*events.EventList, er // Sanity check. if iss.nextNewMembership != nil { - return nil, fmt.Errorf("already have a new membership") + return nil, fmt.Errorf("already have a new membership for epoch %v", iss.epoch.Nr()) } // Convenience variable.