Skip to content

Commit

Permalink
format err info (#989)
Browse files Browse the repository at this point in the history
  • Loading branch information
peakle authored Mar 5, 2021
1 parent f40ea7e commit 1a7995b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fasthttpproxy/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 1a7995b

Please sign in to comment.