about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2024-05-12 14:37:27 +0200
committerAlan Pearce2024-05-12 14:37:27 +0200
commitef50bbf934a3024fdb82c31f5dc38e017603a86f (patch)
tree790b5bf703ea463522562b316920ed0aa8d06040
parent6a462c1356a505770a7a142745d394f52c151269 (diff)
downloadsearchix-ef50bbf934a3024fdb82c31f5dc38e017603a86f.tar.lz
searchix-ef50bbf934a3024fdb82c31f5dc38e017603a86f.tar.zst
searchix-ef50bbf934a3024fdb82c31f5dc38e017603a86f.zip
fix(import): don't remove index if there are errors
now that we can update the index, this is no longer reasonable
-rw-r--r--import/main.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/import/main.go b/import/main.go
index 0bff7ab..d9c3bf5 100644
--- a/import/main.go
+++ b/import/main.go
@@ -120,7 +120,6 @@ func main() {
 	}
 
 	if hadErrors {
-		os.RemoveAll(path.Join(cfg.DataPath, "index.bleve"))
 		defer os.Exit(1)
 	}
 }