forked from TrueCloudLab/restic
Merge pull request #1757 from restic/fix-debug-1755
Fix panic for nil-pointer dereference
This commit is contained in:
commit
abdd59ea1b
1 changed files with 1 additions and 1 deletions
|
@ -104,7 +104,7 @@ func (s *TreeSaver) save(ctx context.Context, snPath string, node *restic.Node,
|
|||
|
||||
// return the error if it wasn't ignored
|
||||
if fn.err != nil {
|
||||
debug.Log("err for %v: %v", fn.node.Name, fn.err)
|
||||
debug.Log("err for %v: %v", fn.snPath, fn.err)
|
||||
fn.err = s.errFn(fn.target, fn.fi, fn.err)
|
||||
if fn.err == nil {
|
||||
// ignore error
|
||||
|
|
Loading…
Reference in a new issue