mirror of
				https://github.com/meilisearch/meilisearch.git
				synced 2025-10-31 16:06:31 +00:00 
			
		
		
		
	Throw and error when the index is not found
Co-authored-by: Louis Dureuil <louis@meilisearch.com>
This commit is contained in:
		| @@ -443,7 +443,8 @@ fn compact_index(db_path: PathBuf, index_name: &str) -> anyhow::Result<()> { | ||||
|         drop(new_file); | ||||
|  | ||||
|         println!("Everything's done 🎉"); | ||||
|         return Ok(()) | ||||
|     } | ||||
|  | ||||
|     Ok(()) | ||||
|     bail!("Target index {index_name} not found!") | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user