fix err msg
This commit is contained in:
3
main.go
3
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)
|
||||
|
||||
Reference in New Issue
Block a user