Skip to content

Commit

Permalink
cli: make error message compatible with pd flag name when PD address …
Browse files Browse the repository at this point in the history
…unreachable (pingcap#2122) (pingcap#2128)
  • Loading branch information
ti-chi-bot authored and liuzix committed Jul 6, 2021
1 parent fe2f767 commit 8d4e048
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ func newCliCommand() *cobra.Command {
})
if err != nil {
// PD embeds an etcd server.
return errors.Annotatef(err, "fail to open PD etcd client, pd-addr=\"%s\"", cliPdAddr)
return errors.Annotatef(err, "fail to open PD etcd client, pd=\"%s\"", cliPdAddr)
}
cdcEtcdCli = kv.NewCDCEtcdClient(defaultContext, etcdCli)
pdCli, err = pd.NewClientWithContext(
Expand Down

0 comments on commit 8d4e048

Please sign in to comment.