Merge pull request #4089 from greatroar/errors

Clean up error handling further
This commit is contained in:
Michael Eischer
2022-12-24 10:41:56 +01:00
committed by GitHub
12 changed files with 47 additions and 49 deletions

View File

@@ -184,7 +184,7 @@ func (res *Restorer) restoreHardlinkAt(node *restic.Node, target, path, location
}
err := fs.Link(target, path)
if err != nil {
return errors.Wrap(err, "CreateHardlink")
return errors.WithStack(err)
}
// TODO investigate if hardlinks have separate metadata on any supported system
return res.restoreNodeMetadataTo(node, path, location)