Skip to content

Commit b61c833

Browse files
committed
cmd/network: Avoid eager termination in the status output
Status commands should output as much as possible for the purpose of debugging.
1 parent eaa2827 commit b61c833

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

cmd/network/show.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@ func prettyPrintEntityNodes(ctx context.Context, npa *common.NPASelection, staki
114114
fmt.Printf(" Freeze End Time: %d\n", nodeStatus.FreezeEndTime)
115115
fmt.Printf(" Election Eligible After: %d\n", nodeStatus.ElectionEligibleAfter)
116116
} else {
117-
return fmt.Errorf("could not get a node: %s", err2)
117+
fmt.Printf("Node descriptor not available: %s\n", err2)
118+
continue
118119
}
119120

120121
if i < len(entity.Nodes)-1 {

0 commit comments

Comments
 (0)