@ -51,6 +51,9 @@ func (d *Downloader) download(url string, output string, doneChan chan error) {
doneChan <- err
return
}
if res.StatusCode != http.StatusOK {
f, err := os.Create(output)
if err != nil {