mirror of
https://github.com/restic/restic.git
synced 2025-03-16 00:00:05 +01:00
Add error checking and update files
This commit is contained in:
parent
8ee915925f
commit
16715ed86f
1 changed files with 8 additions and 1 deletions
|
@ -441,7 +441,14 @@ func (r *Repository) LoadIndex() error {
|
|||
|
||||
// update cache
|
||||
if r.cache != nil {
|
||||
r.cache.UpdateBlobs(r.idx)
|
||||
err := r.cache.UpdateBlobs(r.idx)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
err = r.cache.UpdateFiles(r.Backend())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
|
|
Loading…
Add table
Reference in a new issue