From 068004ba140620c5c6aee7d28743876537403a62 Mon Sep 17 00:00:00 2001 From: Steven Polley Date: Mon, 11 Nov 2024 06:25:26 -0700 Subject: [PATCH] bitcoin address failure - actually check the error --- providers/bitcoin/providerImpl.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/providers/bitcoin/providerImpl.go b/providers/bitcoin/providerImpl.go index 9e3eca2..bdb180a 100644 --- a/providers/bitcoin/providerImpl.go +++ b/providers/bitcoin/providerImpl.go @@ -63,6 +63,9 @@ func (p *Provider) GetBalances() ([]int, []string, error) { }(goErr) } wg.Wait() + if *goErr != nil { + return nil, nil, *goErr + } fiatBalance, err := p.client.convertBTCToCAD(satoshiBalance) if err != nil {