Skip to content

Commit

Permalink
Changed a critical error to a non-critical one when dealing with the …
Browse files Browse the repository at this point in the history
…strange .CopyFile flag in common/download.go.
  • Loading branch information
arizvisa committed Dec 21, 2017
1 parent 7994d86 commit 0b02a49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/download.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0b02a49

Please sign in to comment.