repair pack: add support for truncated files

This commit is contained in:
Michael Eischer committed 2024-01-27 12:51:45 +01:00
1 parent 7c351bc53c
commit 764b0bacd6
1 file changed
+2 -1
+2 -1
View File
@@ -44,7 +44,8 @@ func RepairPacks(ctx context.Context, repo restic.Repository, ids restic.IDSet,
} }
return err return err
}) })
if err != nil { // ignore truncated file parts
if err != nil && !errors.Is(err, io.ErrUnexpectedEOF) {
return err return err
} }
bar.Add(1) bar.Add(1)