mirror of
https://github.com/restic/restic.git
synced 2025-08-12 15:07:53 +00:00
cache: Add file name to error message
This commit is contained in:
2
internal/cache/file.go
vendored
2
internal/cache/file.go
vendored
@@ -60,7 +60,7 @@ func (c *Cache) Load(h restic.Handle, length int, offset int64) (io.ReadCloser,
|
||||
if fi.Size() <= crypto.Extension {
|
||||
_ = f.Close()
|
||||
_ = c.Remove(h)
|
||||
return nil, errors.New("cached file is truncated, removing")
|
||||
return nil, errors.Errorf("cached file %v is truncated, removing", h)
|
||||
}
|
||||
|
||||
if offset > 0 {
|
||||
|
Reference in New Issue
Block a user