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

This commit is contained in:
Ali Rizvi-Santiago 2017-12-06 16:29:00 -06:00
parent c978e27f0f
commit d85883582f
1 changed files with 2 additions and 2 deletions

View File

@ -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