diff --git a/main.go b/main.go index 92ca940..dc4a26b 100644 --- a/main.go +++ b/main.go @@ -115,7 +115,8 @@ func Recursive(ctx context.Context) error { defer resp.Body.Close() defer io.Copy(io.Discard, resp.Body) if resp.StatusCode > 250 { - return fmt.Errorf("unexpected status code from %s for %s: %w", WebhookOnRecursiveMiss, p, err) + b, _ := io.ReadAll(resp.Body) + return fmt.Errorf("unexpected status code from %s for %s: (%d) %s", WebhookOnRecursiveMiss, p, resp.StatusCode, b) } os.MkdirAll(path.Dir(cacheP), os.ModePerm)