New ๐ŸŒŠ wave for @helm

Commit 5769995b

5769995bb431Merged

Svyatoslav Dumchenko <[email protected]> ยท 5 years ago ยท 1 file ยท ~1 modified

Description

Log flock release error

Details

Commit
5769995bb431
Parent
51b80effdb8a

pkg/repo/helm.gomodifiedView file

@@ -32,7 +32,10 @@
3232
3333 locked, err := fileLock.TryLockContext(lockCtx, time.Second)
3434 if err == nil && locked {
35- defer fileLock.Unlock()
35+ defer func(fileLock *flock.Flock) {
36+ err := fileLock.Unlock()
37+ log.Errorf("Failed to release flock: %v", err.Error())
38+ }(fileLock)
3639 }
3740
3841 f, err := repo.LoadFile(repofile)