mirror of
https://github.com/restic/restic.git
synced 2026-10-23 17:28:54 +00:00
Add more error handling
This commit is contained in:
1 parent
aef3658a5f
commit
0858fbf6aa
23 files changed
+91
-36
No files matched your search
Vendored
+1
-1
@@ -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