From 16849d53618b2d7ee633c0664f46484c45ed5803 Mon Sep 17 00:00:00 2001 From: greatroar <61184462+greatroar@users.noreply.github.com> Date: Fri, 14 Oct 2022 14:18:52 +0200 Subject: [PATCH] internal/archiver: Missing argument to errors.Errorf --- internal/archiver/archiver.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/archiver/archiver.go b/internal/archiver/archiver.go index 24a0dc135..59392e028 100644 --- a/internal/archiver/archiver.go +++ b/internal/archiver/archiver.go @@ -420,7 +420,7 @@ func (arch *Archiver) Save(ctx context.Context, snPath, target string, previous // make sure it's still a file 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() err = arch.error(abstarget, err) if err != nil {