From 4ca46b9e5f3480f234ca9c0ce2934ea38d3f72be Mon Sep 17 00:00:00 2001 From: mpostma Date: Tue, 9 Feb 2021 13:25:20 +0100 Subject: [PATCH] fix bug in error message --- src/index_controller/local_index_controller/index_store.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index_controller/local_index_controller/index_store.rs b/src/index_controller/local_index_controller/index_store.rs index 36c864772..96ef3e7cd 100644 --- a/src/index_controller/local_index_controller/index_store.rs +++ b/src/index_controller/local_index_controller/index_store.rs @@ -257,7 +257,7 @@ impl IndexStore { let mut txn = self.env.write_txn()?; 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)?;