mirror of
https://github.com/restic/restic.git
synced 2026-07-15 11:44:53 +00:00
Add more error handling
This commit is contained in:
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