summaryrefslogtreecommitdiff
path: root/cache/cache.go
diff options
context:
space:
mode:
authorewy <ewy0@protonmail.com>2026-04-14 18:58:37 +0200
committerewy <ewy0@protonmail.com>2026-04-14 18:58:37 +0200
commit370f13b58e9cb74eeab3461afb779cf4d013c94b (patch)
treeb030d70528cd390818254839c1f140a5a575f191 /cache/cache.go
parent4fecdd952c270de8ce6e4cc4e6f3513e5579febe (diff)
handle not having stuff installed a little more gracefully
Diffstat (limited to 'cache/cache.go')
-rw-r--r--cache/cache.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cache/cache.go b/cache/cache.go
index b57d8b8..ae2d081 100644
--- a/cache/cache.go
+++ b/cache/cache.go
@@ -104,7 +104,7 @@ func Save(s *model.State) error {
return os.WriteFile(Path, []byte(c.String()), os.ModePerm)
}
-func LoadState(f fs.FS, cache Cache, indexers []model.Indexer, runners []model.Runner) (*model.State, error) {
+func LoadState(f fs.FS, cache Cache, indexers []model.Indexer, runners []model.Runner) (*model.State, []error) {
var locs []string
for _, e := range cache.Entries {
locs = append(locs, e.Path)