mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-02-04 01:23:28 +01:00
Throw and error when the index is not found
Co-authored-by: Louis Dureuil <louis@meilisearch.com>
This commit is contained in:
parent
c72f114b33
commit
71bb24f17e
@ -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!")
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user