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 }