mirror of
https://github.com/restic/restic.git
synced 2025-12-16 05:23:24 +00:00
node: report error on xattr retrieval using standard error logging
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user