1
0
Fork 0
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:
Alexander Neumann 2016-09-04 21:58:35 +02:00
parent 8ee915925f
commit 16715ed86f

View file

@ -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