From a5099c3c9bba7e8d783b5850517b78185b88f817 Mon Sep 17 00:00:00 2001 From: Kevin Biju Date: Thu, 7 Mar 2024 02:08:22 +0530 Subject: [PATCH] fixed minor bug --- flow/cmd/peer_data.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flow/cmd/peer_data.go b/flow/cmd/peer_data.go index 73d1b8310e..4bde101258 100644 --- a/flow/cmd/peer_data.go +++ b/flow/cmd/peer_data.go @@ -42,8 +42,8 @@ func (h *FlowRequestHandler) getSFPeerConfig(ctx context.Context, peerName strin } unmarshalErr := proto.Unmarshal(sfPeerOptions, &sfPeerConfig) - if err != nil { - return nil, unmarshalErr + if unmarshalErr != nil { + return nil, fmt.Errorf("failed to unmarshal protobuf: %w", unmarshalErr) } return &sfPeerConfig, nil