diff --git a/src/pkg/http/transport.go b/src/pkg/http/transport.go index 7fa37af3b60..d87a64613c5 100644 --- a/src/pkg/http/transport.go +++ b/src/pkg/http/transport.go @@ -217,6 +217,9 @@ func (t *Transport) getConn(cm *connectMethod) (*persistConn, os.Error) { conn, err := net.Dial("tcp", cm.addr()) if err != nil { + if cm.proxyURL != nil { + err = fmt.Errorf("http: error connecting to proxy %s: %v", cm.proxyURL, err) + } return nil, err }