2
2
mirror of https://github.com/octoleo/restic.git synced 2024-06-01 08:30:49 +00:00

Ignore invalid index files, print warning

This commit is contained in:
Alexander Neumann 2017-10-05 20:39:53 +02:00
parent d81adcfaa5
commit d886bc6c48

View File

@ -378,7 +378,8 @@ func (r *Repository) LoadIndex(ctx context.Context) error {
worker := func(ctx context.Context, id restic.ID) error {
idx, err := LoadIndex(ctx, r, id)
if err != nil {
return err
fmt.Fprintf(os.Stderr, "%v, ignoring\n", err)
return nil
}
select {