diff --git a/server/src/tantivy.rs b/server/src/tantivy.rs index e46391c..ea93e52 100644 --- a/server/src/tantivy.rs +++ b/server/src/tantivy.rs @@ -147,7 +147,8 @@ impl TantivyConnection { fn create_news_db(tantivy_db_path: &str) -> Result<(), TantivyError> { info!("create_news_db"); - std::fs::remove_dir_all(tantivy_db_path)?; + // Don't care if directory didn't exist + let _ = std::fs::remove_dir_all(tantivy_db_path); std::fs::create_dir_all(tantivy_db_path)?; use tantivy::schema::*; let mut schema_builder = Schema::builder();