Skip to content

Commit

Permalink
Merge pull request #3513 from hashicorp/list-peers-error
Browse files Browse the repository at this point in the history
Returns errors properly from the consul operator raft list-peers comm…
  • Loading branch information
slackpad authored Sep 28, 2017
2 parents 4862275 + be92c68 commit 068d04c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion command/operator_raft_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,10 @@ func (c *OperatorRaftListCommand) Run(args []string) int {
result, err := raftListPeers(client, c.BaseCommand.HTTPStale())
if err != nil {
c.UI.Error(fmt.Sprintf("Error getting peers: %v", err))
return 1
}
c.UI.Output(result)

c.UI.Output(result)
return 0
}

Expand Down

0 comments on commit 068d04c

Please sign in to comment.