🧱 Chunk is a download manager for slow and unstable servers
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix error wrapping nil error

this appears weird in logs, like `got http response 403 Forbidden from https://...: %!w(<nil>)`

authored by

its-josh4 and committed by
GitHub
16c374d4 7d5426cc

+1 -1
+1 -1
downloader.go
··· 128 128 } 129 129 defer resp.Body.Close() 130 130 if resp.StatusCode != http.StatusPartialContent && resp.StatusCode != http.StatusOK { 131 - return nil, fmt.Errorf("got http response %s from %s: %w", resp.Status, u, err) 131 + return nil, fmt.Errorf("got http response %s from %s", resp.Status, u) 132 132 } 133 133 var b bytes.Buffer 134 134 _, err = b.ReadFrom(resp.Body)