From 0e54e63d8e4baccc55c17e3bb1a38890ea80a774 Mon Sep 17 00:00:00 2001 From: cam-schultz Date: Fri, 1 Mar 2024 22:37:35 +0000 Subject: [PATCH] check error --- peers/app_request_network.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/peers/app_request_network.go b/peers/app_request_network.go index e3c6d53c..4e9d02a5 100644 --- a/peers/app_request_network.go +++ b/peers/app_request_network.go @@ -59,6 +59,13 @@ func NewNetwork( // Create the info client infoClient := info.NewClient(InfoAPINodeURL) networkID, err := infoClient.GetNetworkID(context.Background()) + if err != nil { + logger.Error( + "Failed to get network ID", + zap.Error(err), + ) + return nil, nil, err + } if networkID != constants.MainnetID && networkID != constants.FujiID &&