mirror of
https://github.com/restic/restic.git
synced 2026-10-29 19:45:42 +00:00
1 parent
49e32f3f8a
commit
b50ff04cf3
2 files changed
+32
-2
No files matched your search
@@ -3,6 +3,7 @@ package dump
|
||||
import (
|
||||
"archive/tar"
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
@@ -94,9 +95,8 @@ func (d *Dumper) dumpNodeTar(ctx context.Context, node *restic.Node, w *tar.Writ
|
||||
|
||||
err = w.WriteHeader(header)
|
||||
if err != nil {
|
||||
return errors.Wrap(err, "TarHeader")
|
||||
return fmt.Errorf("writing header for %q: %w", node.Path, err)
|
||||
}
|
||||
|
||||
return d.writeNode(ctx, w, node)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user