Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'internal/vfs/zip/vfs.go')
-rw-r--r--internal/vfs/zip/vfs.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/vfs/zip/vfs.go b/internal/vfs/zip/vfs.go
index b87b7822..6b42e627 100644
--- a/internal/vfs/zip/vfs.go
+++ b/internal/vfs/zip/vfs.go
@@ -188,7 +188,7 @@ func (zfs *zipVFS) findOrCreateArchive(key string) (*zipArchive, error) {
archive, expiry, found := zfs.cache.GetWithExpiration(key)
if found {
- status, _ := archive.(*zipArchive).openStatus()
+ status, zipErr := archive.(*zipArchive).openStatus()
switch status {
case archiveOpening:
metrics.ZipCacheRequests.WithLabelValues("archive", "hit-opening").Inc()
@@ -209,7 +209,7 @@ func (zfs *zipVFS) findOrCreateArchive(key string) (*zipArchive, error) {
case archiveCorrupted:
// this means that archive is likely changed
// we should invalidate it immediately
- log.WithFields(log.Fields{
+ log.WithError(zipErr).WithFields(log.Fields{
"archive_key": key,
}).Error("archive corrupted")
metrics.ZipCacheRequests.WithLabelValues("archive", "corrupted").Inc()