From 409caa4e357a3026b90c1296dcaecce4404e92f2 Mon Sep 17 00:00:00 2001 From: Ganesh Vanahalli Date: Thu, 18 Jan 2024 15:30:37 +0530 Subject: [PATCH] Add context to fatal error messages while connecting to feed --- broadcastclient/broadcastclient.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/broadcastclient/broadcastclient.go b/broadcastclient/broadcastclient.go index f27fc28fa0..1167dba133 100644 --- a/broadcastclient/broadcastclient.go +++ b/broadcastclient/broadcastclient.go @@ -191,7 +191,7 @@ func (bc *BroadcastClient) Start(ctxIn context.Context) { errors.Is(err, ErrIncorrectChainId) || errors.Is(err, ErrMissingFeedServerVersion) || errors.Is(err, ErrIncorrectFeedServerVersion) { - bc.fatalErrChan <- err + bc.fatalErrChan <- fmt.Errorf("failed connecting to server feed due to %w", err) return } if err == nil {