mirror of
https://github.com/restic/restic.git
synced 2025-08-24 10:51:56 +00:00
Add more error handling
This commit is contained in:
@@ -97,7 +97,8 @@ func (w *filesWriter) writeToFile(path string, blob []byte, offset int64, create
|
||||
_, err = wr.WriteAt(blob, offset)
|
||||
|
||||
if err != nil {
|
||||
releaseWriter(wr)
|
||||
// ignore subsequent errors
|
||||
_ = releaseWriter(wr)
|
||||
return err
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user