Ignore invalid index files, print warning
This commit is contained in:
parent
d81adcfaa5
commit
d886bc6c48
1 changed files with 2 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue