Merge pull request #3221 from tstromberg/iso_errors
Include ISO URL and reduce stutter in download error messagepull/3268/head
commit
b93c22b6ab
|
@ -217,7 +217,7 @@ func createHost(api libmachine.API, config cfg.MachineConfig) (*host.Host, error
|
||||||
|
|
||||||
if config.VMDriver != "none" {
|
if config.VMDriver != "none" {
|
||||||
if err := config.Downloader.CacheMinikubeISOFromURL(config.MinikubeISO); err != nil {
|
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")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -74,7 +74,7 @@ func (f DefaultDownloader) CacheMinikubeISOFromURL(isoURL string) error {
|
||||||
|
|
||||||
fmt.Println("Downloading Minikube ISO")
|
fmt.Println("Downloading Minikube ISO")
|
||||||
if err := download.ToFile(isoURL, f.GetISOCacheFilepath(isoURL), options); err != nil {
|
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
|
return nil
|
||||||
|
|
Loading…
Reference in New Issue