add: information about endpoint connection when auth handshake fails

This commit is contained in:
Nils Carstensen 2024-02-02 15:35:14 +00:00
parent a63ca6749b
commit 7d25a03ee3
No known key found for this signature in database
GPG Key ID: 1F25989330BF84C3

View File

@ -286,7 +286,7 @@ func newHTTP2Client(connectCtx, ctx context.Context, addr resolver.Address, opts
if transportCreds != nil {
conn, authInfo, err = transportCreds.ClientHandshake(connectCtx, addr.ServerName, conn)
if err != nil {
return nil, connectionErrorf(isTemporary(err), err, "transport: authentication handshake failed: %v", err)
return nil, connectionErrorf(isTemporary(err), err, "transport: authentication handshake failed for %s: %v", addr.ServerName, err)
}
for _, cd := range perRPCCreds {
if cd.RequireTransportSecurity() {