mirror of
https://github.com/octoleo/restic.git
synced 2025-01-22 22:58:26 +00:00
Ignore invalid index files, print warning
This commit is contained in:
parent
d81adcfaa5
commit
d886bc6c48
@ -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…
x
Reference in New Issue
Block a user