mirror of
https://github.com/restic/restic.git
synced 2026-10-15 14:17:12 +00:00
backend/rclone: Stop rclone in case of errors
This commit is contained in:
1 parent
6d9a029e09
commit
99b62c11b8
1 file changed
+1
@@ -221,6 +221,7 @@ func Create(cfg Config) (*Backend, error) {
|
||||
|
||||
restBackend, err := rest.Create(restConfig, be.tr)
|
||||
if err != nil {
|
||||
_ = be.Close()
|
||||
return nil, err
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user