Merge pull request #540 from fluxcd/helm-repo-index-err-fix

This commit is contained in:
Hidde Beydals 2022-01-13 11:12:15 +01:00 committed by GitHub
commit 05b980cb5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -269,7 +269,7 @@ func (r *ChartRepository) CacheIndex() (string, error) {
if err = r.DownloadIndex(mw); err != nil {
f.Close()
os.RemoveAll(f.Name())
return "", fmt.Errorf("failed to cache index to '%s': %w", f.Name(), err)
return "", fmt.Errorf("failed to cache index to temporary file: %w", err)
}
if err = f.Close(); err != nil {
os.RemoveAll(f.Name())