node: report error on xattr retrieval using standard error logging

This commit is contained in:
Michael Eischer committed 2025-10-03 18:55:46 +02:00
1 parent f2b9ea6455
commit df7924f4df
17 files changed
+30 -29

No files matched your search

+1 -1
View File
@@ -86,7 +86,7 @@ func TestNodeMarshal(t *testing.T) {
func nodeForFile(t *testing.T, name string) *restic.Node {
f, err := (&fs.Local{}).OpenFile(name, fs.O_NOFOLLOW, true)
rtest.OK(t, err)
node, err := f.ToNode(false)
node, err := f.ToNode(false, t.Logf)
rtest.OK(t, err)
rtest.OK(t, f.Close())
return node