fix: improve logging and errors for extra manifests by URL

Just more logging and error context.

Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
This commit is contained in:
Andrey Smirnov 2020-10-12 21:41:37 +03:00 committed by talos-bot
parent 025990e57b
commit ccba113809

View File

@ -236,8 +236,10 @@ func fetchManifests(urls []string, headers map[string]string) error {
Options: []getter.ClientOption{},
}
fmt.Printf("Downloading manifest: %q -> %q", client.Src, client.Dst)
if err = client.Get(); err != nil {
result = multierror.Append(result, err)
result = multierror.Append(result, fmt.Errorf("error fetching manifest by URL %q: %w", url, err))
continue
}
}