mirror of
https://github.com/restic/restic.git
synced 2026-10-14 14:07:11 +00:00
replace "too small" with "too short" in error messages
This commit is contained in:
1 parent
53561474d9
commit
6328b7e1f5
5 files changed
+7
-7
No files matched your search
Vendored
+1
-1
@@ -61,7 +61,7 @@ func (c *Cache) load(h backend.Handle, length int, offset int64) (io.ReadCloser,
|
||||
if size < offset+int64(length) {
|
||||
_ = f.Close()
|
||||
_ = c.remove(h)
|
||||
return nil, errors.Errorf("cached file %v is too small, removing", h)
|
||||
return nil, errors.Errorf("cached file %v is too short, removing", h)
|
||||
}
|
||||
|
||||
if offset > 0 {
|
||||
|
||||
Reference in new issue
Block a user