Include ISO URL in download error, make output slightly easier to read.

pull/3221/head
Thomas Stromberg 2018-10-05 12:50:47 -07:00
parent acbc7559e4
commit 7e54a16d60
2 changed files with 3 additions and 3 deletions

View File

@ -217,7 +217,7 @@ func createHost(api libmachine.API, config cfg.MachineConfig) (*host.Host, error
if config.VMDriver != "none" {
if err := config.Downloader.CacheMinikubeISOFromURL(config.MinikubeISO); err != nil {
return nil, errors.Wrap(err, "Error attempting to cache minikube ISO from URL")
return nil, errors.Wrap(err, "unable to cache ISO")
}
}

View File

@ -72,9 +72,9 @@ func (f DefaultDownloader) CacheMinikubeISOFromURL(isoURL string) error {
options.ChecksumHash = crypto.SHA256
}
fmt.Println("Downloading Minikube ISO")
fmt.Printf("Downloading Minikube ISO")
if err := download.ToFile(isoURL, f.GetISOCacheFilepath(isoURL), options); err != nil {
return errors.Wrap(err, "Error downloading Minikube ISO")
return errors.Wrap(err, isoURL)
}
return nil