fix tests vs running
This commit is contained in:
@@ -132,7 +132,7 @@ func proxyFetch(ctx context.Context, u string) (string, error) {
|
||||
b, _ := io.ReadAll(resp.Body)
|
||||
|
||||
if resp.StatusCode != http.StatusOK {
|
||||
return "", fmt.Errorf("failed fetch: (%d) %s", resp.StatusCode, b)
|
||||
return "", fmt.Errorf("failed fetch %s %s: (%d) %s", req.Method, req.URL.String(), resp.StatusCode, b)
|
||||
}
|
||||
|
||||
return string(b), nil
|
||||
|
||||
Reference in New Issue
Block a user