From 7320396c5f4afc4de0d5d9675211bce611b5f42b Mon Sep 17 00:00:00 2001 From: Alexander Chuprov Date: Fri, 13 Dec 2024 19:13:11 +0300 Subject: [PATCH] [#1342] network/cache: Add node address to error multiClient Signed-off-by: Alexander Chuprov --- pkg/network/cache/multi.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/network/cache/multi.go b/pkg/network/cache/multi.go index 481d1ea4a..4d95e2ef1 100644 --- a/pkg/network/cache/multi.go +++ b/pkg/network/cache/multi.go @@ -155,7 +155,7 @@ func (x *multiClient) iterateClients(ctx context.Context, f func(clientcore.Clie group.IterateAddresses(func(addr network.Address) bool { select { case <-ctx.Done(): - firstErr = context.Canceled + firstErr = fmt.Errorf("client connection error at %v: %w", addr, context.Canceled) return true default: }