Skip to content

Commit d3892fe

Browse files
committed
[FAB-4130] fix peer node status error reports
This patch fixes [FAB-4130]. With this patch, "peer node status" command shows error messages, and exits with an error code when they encounter errors. Change-Id: I08a1556336b82af505051a7674d9486d561b6bec Signed-off-by: Taku Shimosawa <[email protected]>
1 parent ebc4d60 commit d3892fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

peer/node/status.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ var nodeStatusCmd = &cobra.Command{
3434
Use: "status",
3535
Short: "Returns status of the node.",
3636
Long: `Returns the status of the running node.`,
37-
Run: func(cmd *cobra.Command, args []string) {
38-
status()
37+
RunE: func(cmd *cobra.Command, args []string) error {
38+
return status()
3939
},
4040
}
4141

0 commit comments

Comments
 (0)