diff --git a/cli/state.go b/cli/state.go index 7db7fa719..65f8f5686 100644 --- a/cli/state.go +++ b/cli/state.go @@ -1855,6 +1855,9 @@ var stateNtwkVersionCmd = &cli.Command{ } nv, err := api.StateNetworkVersion(ctx, ts.Key()) + if err != nil { + return err + } fmt.Printf("Network Version: %d\n", nv)