mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 04:17:10 +02: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
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue