mirror of
https://github.com/octoleo/restic.git
synced 2025-02-02 20:08:25 +00:00
Merge pull request #1757 from restic/fix-debug-1755
Fix panic for nil-pointer dereference
This commit is contained in:
commit
abdd59ea1b
@ -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…
x
Reference in New Issue
Block a user