summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/main.go b/main.go
index 843be56..036504c 100644
--- a/main.go
+++ b/main.go
@@ -147,6 +147,9 @@ func pik() int {
if !*flags.All {
st, stateErrors = model.NewState(fs, locs, indexers, runners)
go func() {
+ if len(stateErrors) > 0 {
+ return
+ }
err := cache.Insert(st)
if err != nil {
spool.Warn("%v\n", err)