mirror of
https://github.com/restic/restic.git
synced 2026-08-28 16:27:31 +00:00
Add more error handling
This commit is contained in:
@@ -52,7 +52,7 @@ func DefaultLoad(ctx context.Context, h restic.Handle, length int, offset int64,
|
||||
}
|
||||
err = fn(rd)
|
||||
if err != nil {
|
||||
rd.Close() // ignore secondary errors closing the reader
|
||||
_ = rd.Close() // ignore secondary errors closing the reader
|
||||
return err
|
||||
}
|
||||
return rd.Close()
|
||||
|
||||
Reference in New Issue
Block a user