Changed a critical error to a non-critical one when dealing with the strange .CopyFile flag in common/download.go.

pull/2906/head
Ali Rizvi-Santiago 9 years ago
parent c978e27f0f
commit d85883582f

@ -155,12 +155,12 @@ func (d *DownloadClient) Get() (string, error) {
remote, ok := d.downloader.(RemoteDownloader)
if !ok {
return "", fmt.Errorf("Unable to treat uri scheme %s as a Downloader : %T", u.Scheme, d.downloader)
return "", fmt.Errorf("Unable to treat uri scheme %s as a Downloader. : %T", u.Scheme, d.downloader)
}
local, ok := d.downloader.(LocalDownloader)
if !ok && !d.config.CopyFile {
return "", fmt.Errorf("Not allowed to use uri scheme %s in no copy file mode : %T", u.Scheme, d.downloader)
d.config.CopyFile = true
}
// If we're copying the file, then just use the actual downloader

Loading…
Cancel
Save