internal/archiver: Missing argument to errors.Errorf
This commit is contained in:
parent
09c14f33c8
commit
16849d5361
1 changed files with 1 additions and 1 deletions
|
@ -420,7 +420,7 @@ func (arch *Archiver) Save(ctx context.Context, snPath, target string, previous
|
||||||
|
|
||||||
// make sure it's still a file
|
// make sure it's still a file
|
||||||
if !fs.IsRegularFile(fi) {
|
if !fs.IsRegularFile(fi) {
|
||||||
err = errors.Errorf("file %v changed type, refusing to archive")
|
err = errors.Errorf("file %v changed type, refusing to archive", fi.Name())
|
||||||
_ = file.Close()
|
_ = file.Close()
|
||||||
err = arch.error(abstarget, err)
|
err = arch.error(abstarget, err)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Add table
Reference in a new issue