From 889ecfc16d27e300e54677abdf22ac36a96fc8e2 Mon Sep 17 00:00:00 2001
From: joshemb <josh@elixxir.io>
Date: Fri, 5 Aug 2022 11:24:20 -0700
Subject: [PATCH] GetNodeRegistrationStatus report fix

---
 bindings/follow.go | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/bindings/follow.go b/bindings/follow.go
index 1f3ff5781..482bbd9cd 100644
--- a/bindings/follow.go
+++ b/bindings/follow.go
@@ -98,23 +98,24 @@ func (c *Cmix) NetworkFollowerStatus() int {
 type NodeRegistrationReport struct {
 	NumberOfNodesRegistered int
 	NumberOfNodes           int
-	Err                     error
 }
 
 // GetNodeRegistrationStatus returns the current state of node registration.
 //
 // Returns:
 //  - []bye - A marshalled NodeRegistrationReport containing the number of
-//    nodes the user is registered with, the number of nodes present in the NDF and
-//    a nullable error. If the error is not null, the most likely cause is that the
-//    network is unhealthy.
+//    nodes the user is registered with and the number of nodes present in the NDF.
+//  - An error if it cannot get the node registration status. The most likely cause
+//    is that the network is unhealthy.
 func (c *Cmix) GetNodeRegistrationStatus() ([]byte, error) {
 	numNodesRegistered, numNodes, err := c.api.GetNodeRegistrationStatus()
+	if err != nil {
+		return nil, err
+	}
 
 	nodeRegReport := NodeRegistrationReport{
 		NumberOfNodesRegistered: numNodesRegistered,
 		NumberOfNodes:           numNodes,
-		Err:                     err,
 	}
 
 	return json.Marshal(nodeRegReport)
-- 
GitLab