cache: improve error reported for atime check (#14384)

This commit is contained in:
Poorna 2022-02-23 11:57:06 -08:00 committed by GitHub
parent 4ea7bf0510
commit 1ef8babfef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)