aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command_cluster_raft_ps.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/shell/command_cluster_raft_ps.go')
-rw-r--r--weed/shell/command_cluster_raft_ps.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/shell/command_cluster_raft_ps.go b/weed/shell/command_cluster_raft_ps.go
index c8324f635..73bfde8da 100644
--- a/weed/shell/command_cluster_raft_ps.go
+++ b/weed/shell/command_cluster_raft_ps.go
@@ -40,7 +40,7 @@ func (c *commandRaftClusterPs) Do(args []string, commandEnv *CommandEnv, writer
err = commandEnv.MasterClient.WithClient(false, func(client master_pb.SeaweedClient) error {
resp, err := client.RaftListClusterServers(context.Background(), &master_pb.RaftListClusterServersRequest{})
if err != nil {
- return fmt.Errorf("raft list cluster: %v", err)
+ return fmt.Errorf("raft list cluster: %w", err)
}
fmt.Fprintf(writer, "the raft cluster has %d servers\n", len(resp.ClusterServers))
for _, server := range resp.ClusterServers {