diff --git a/peer/node/status.go b/peer/node/status.go index 0ace3e24b51..032988cc09d 100644 --- a/peer/node/status.go +++ b/peer/node/status.go @@ -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() }, }