aboutsummaryrefslogtreecommitdiff
path: root/fasthttpproxy
diff options
context:
space:
mode:
authorGravatar peakle <denislimarev@gmail.com> 2021-03-05 19:39:17 +0300
committerGravatar GitHub <noreply@github.com> 2021-03-05 17:39:17 +0100
commit1a7995ba8807d7ac20b966154bff522ab084a49c (patch)
treebb264bd566a991264bebc3704596a513c464ffa3 /fasthttpproxy
parentImprove socks proxy (#990) (diff)
downloadfasthttp-1a7995ba8807d7ac20b966154bff522ab084a49c.tar.gz
fasthttp-1a7995ba8807d7ac20b966154bff522ab084a49c.tar.bz2
fasthttp-1a7995ba8807d7ac20b966154bff522ab084a49c.zip
format err info (#989)
Diffstat (limited to 'fasthttpproxy')
-rw-r--r--fasthttpproxy/http.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/fasthttpproxy/http.go b/fasthttpproxy/http.go
index c838d58..0ba3092 100644
--- a/fasthttpproxy/http.go
+++ b/fasthttpproxy/http.go
@@ -70,7 +70,7 @@ func FasthttpHTTPDialerTimeout(proxy string, timeout time.Duration) fasthttp.Dia
}
if res.Header.StatusCode() != 200 {
conn.Close()
- return nil, fmt.Errorf("could not connect to proxy")
+ return nil, fmt.Errorf("could not connect to proxy: %s status code: %d", proxy, res.Header.StatusCode())
}
return conn, nil
}