From 338d1ef254e8758c38dc3731d64a0f22c54c6263 Mon Sep 17 00:00:00 2001 From: Denis Kirillov Date: Mon, 19 Aug 2024 16:17:26 +0300 Subject: [PATCH] [#258] 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 }