Skip to content

Commit

Permalink
[FAB-4130] fix peer node status error reports
Browse files Browse the repository at this point in the history
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 <taku.shimosawa@hal.hitachi.com>
  • Loading branch information
shimos committed Jun 1, 2017
1 parent ebc4d60 commit d3892fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions peer/node/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ var nodeStatusCmd = &cobra.Command{
Use: "status",
Short: "Returns status of the node.",
Long: `Returns the status of the running node.`,
Run: func(cmd *cobra.Command, args []string) {
status()
RunE: func(cmd *cobra.Command, args []string) error {
return status()
},
}

Expand Down

0 comments on commit d3892fe

Please sign in to comment.