From 1ef8babfef5920c6e8785215ce22f2699127b343 Mon Sep 17 00:00:00 2001 From: Poorna Date: Wed, 23 Feb 2022 11:57:06 -0800 Subject: [PATCH] cache: improve error reported for atime check (#14384) --- cmd/disk-cache.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/disk-cache.go b/cmd/disk-cache.go index a6df3bee7..80f5a8890 100644 --- a/cmd/disk-cache.go +++ b/cmd/disk-cache.go @@ -19,7 +19,6 @@ package cmd import ( "context" - "errors" "fmt" "io" "net/http" @@ -602,7 +601,7 @@ func newCache(config cache.Config) ([]*diskCache, bool, error) { continue } if err := checkAtimeSupport(dir); err != nil { - return nil, false, errors.New("Atime support required for disk caching") + return nil, false, fmt.Errorf("Atime support required for disk caching, atime check failed with %w", err) } cache, err := newDiskCache(ctx, dir, config)