mirror of
https://github.com/restic/restic.git
synced 2026-02-03 20:39:52 -05:00
repository: don't ignore cache clearing error
This commit is contained in:
parent
4dc71f24c5
commit
b6c50662da
1 changed files with 1 additions and 7 deletions
|
|
@ -6,7 +6,6 @@ import (
|
|||
"fmt"
|
||||
"io"
|
||||
"math"
|
||||
"os"
|
||||
"runtime"
|
||||
"sort"
|
||||
"sync"
|
||||
|
|
@ -755,12 +754,7 @@ func (r *Repository) prepareCache() error {
|
|||
packs := r.idx.Packs(restic.NewIDSet())
|
||||
|
||||
// clear old packs
|
||||
err := r.cache.Clear(restic.PackFile, packs)
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "error clearing pack files in cache: %v\n", err)
|
||||
}
|
||||
|
||||
return nil
|
||||
return r.cache.Clear(restic.PackFile, packs)
|
||||
}
|
||||
|
||||
// SearchKey finds a key with the supplied password, afterwards the config is
|
||||
|
|
|
|||
Loading…
Reference in a new issue