forked from TrueCloudLab/restic
Add more error handling
This commit is contained in:
parent
aef3658a5f
commit
0858fbf6aa
23 changed files with 91 additions and 36 deletions
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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue