mirror of
https://github.com/restic/restic.git
synced 2025-11-16 06:03:15 +00:00
Add more error handling
This commit is contained in:
2
internal/cache/backend.go
vendored
2
internal/cache/backend.go
vendored
@@ -166,7 +166,7 @@ func (b *Backend) Load(ctx context.Context, h restic.Handle, length int, offset
|
||||
if err == nil {
|
||||
err = consumer(rd)
|
||||
if err != nil {
|
||||
rd.Close() // ignore secondary errors
|
||||
_ = rd.Close() // ignore secondary errors
|
||||
return err
|
||||
}
|
||||
return rd.Close()
|
||||
|
||||
Reference in New Issue
Block a user