mirror of
https://github.com/octoleo/restic.git
synced 2025-01-25 16:18:34 +00:00
sftp: ignore error
This commit is contained in:
parent
554013ca9f
commit
9271b3662a
@ -294,7 +294,7 @@ func (r *SFTP) Save(h restic.Handle, rd io.Reader) (err error) {
|
|||||||
// save data
|
// save data
|
||||||
_, err = io.Copy(f, rd)
|
_, err = io.Copy(f, rd)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
f.Close()
|
_ = f.Close()
|
||||||
return errors.Wrap(err, "Write")
|
return errors.Wrap(err, "Write")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user