Skip to content
This repository has been archived by the owner on Sep 22, 2020. It is now read-only.

chore(requests): more error info for SendRequest #112

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion etcd/requests.go
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ func DefaultCheckRetry(cluster *Cluster, reqs []http.Request,

if len(reqs) >= 2*len(cluster.Machines) {
return newError(ErrCodeEtcdNotReachable,
"Tried to connect to each peer twice and failed", 0)
fmt.Sprint("Tried to connect to each peer twice and failed. Last error is", err), 0)
}

resp := &resps[len(resps)-1]
Expand Down