From fd77646f8b53abdbd86a2da1da22198130defbf5 Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Thu, 3 May 2018 20:49:30 +0200 Subject: [PATCH] Fix panic for nil-pointer dereference Closes #1755 --- internal/archiver/tree_saver.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/archiver/tree_saver.go b/internal/archiver/tree_saver.go index 6428c6289..db04dfe80 100644 --- a/internal/archiver/tree_saver.go +++ b/internal/archiver/tree_saver.go @@ -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