mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-27 07:14:26 +01:00
fix bug in error message
This commit is contained in:
parent
90b930ed7f
commit
4ca46b9e5f
@ -257,7 +257,7 @@ impl IndexStore {
|
|||||||
let mut txn = self.env.write_txn()?;
|
let mut txn = self.env.write_txn()?;
|
||||||
|
|
||||||
if self.name_to_uuid.get(&txn, name.as_ref())?.is_some() {
|
if self.name_to_uuid.get(&txn, name.as_ref())?.is_some() {
|
||||||
bail!("cannot create index {:?}: an index with this name already exists.")
|
bail!("index {:?} already exists", name.as_ref())
|
||||||
}
|
}
|
||||||
|
|
||||||
let result = self.create_index_txn(&mut txn, uuid, name, update_size, index_size)?;
|
let result = self.create_index_txn(&mut txn, uuid, name, update_size, index_size)?;
|
||||||
|
Loading…
Reference in New Issue
Block a user