Skip to content

Commit 92ef78d

Browse files
committed
Fix nits from review
Signed-off-by: noor <[email protected]>
1 parent 4cfba27 commit 92ef78d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: proxy/proxy.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -966,7 +966,7 @@ func (p *Proxy) makeBackendRequest(ctx *context, requestContext stdlibcontext.Co
966966
status = http.StatusServiceUnavailable
967967
}
968968
p.tracing.setTag(ctx.proxySpan, HTTPStatusCodeTag, uint16(status))
969-
return nil, &proxyError{err: fmt.Errorf("net.Error during backend roundtrip to %s: timeout=%v : %w", req.URL.Host, nerr.Timeout(), err), code: status}
969+
return nil, &proxyError{err: fmt.Errorf("%T during backend roundtrip to %s: timeout=%v: %w", nerr, req.URL.Host, nerr.Timeout(), err), code: status}
970970
}
971971

972972
return nil, &proxyError{err: fmt.Errorf("unexpected error from Go stdlib net/http package during roundtrip: %w", err)}

0 commit comments

Comments
 (0)