etcd-io / etcd-io/etcd

client/v3: improve error messages to include endpoint information

Open
#21,709 5 comments 0 reactions 1 assignee Claimed by @robin-vidal View on GitHub
type/feature
Dominant language
Go
Stars
52.3k
Forks
10.5k
Avg merge
3d 1h
Merged PRs (30d)
44

Description

### What would you like to be added?

Two error paths in `client/v3/client.go` return bare errors without endpoint context (explicit TODO left by maintainers):

- line ~498: dial failure
- line ~519: token retrieval failure

Also `ErrMutuallyExclusiveCfg` missing `etcdclient:` prefix unlike all other client errors.

I will submit a PR

### Why is this needed?

Dial failures give no indication which endpoints were tried.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.