From 848446231082b8b50b2292e152cc116f0c320dbe Mon Sep 17 00:00:00 2001 From: Denis Kirillov Date: Mon, 19 Aug 2024 16:17:26 +0300 Subject: [PATCH] [#257] pool/tree: Add node address to error Signed-off-by: Denis Kirillov --- pool/tree/pool.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pool/tree/pool.go b/pool/tree/pool.go index 195102b..21f7c54 100644 --- a/pool/tree/pool.go +++ b/pool/tree/pool.go @@ -836,6 +836,11 @@ LOOP: if startI != indexI || startJ != indexJ { p.setStartIndices(indexI, indexJ) } + + if err != nil { + err = fmt.Errorf("address %s: %w", p.innerPools[indexI].clients[indexJ].endpoint(), err) + } + return err }