mirror of
https://github.com/restic/restic.git
synced 2026-10-13 05:27:13 +00:00
Add more error handling
This commit is contained in:
1 parent
aef3658a5f
commit
0858fbf6aa
23 files changed
+91
-36
No files matched your search
@@ -25,7 +25,8 @@ func writeDump(ctx context.Context, repo restic.Repository, tree *restic.Tree, r
|
||||
rootNode.Path = rootPath
|
||||
err := dumpTree(ctx, repo, rootNode, rootPath, dmp)
|
||||
if err != nil {
|
||||
dmp.Close()
|
||||
// ignore subsequent errors
|
||||
_ = dmp.Close()
|
||||
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user