mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-01-29 22:43:09 +08:00
Improve the panic message when deleting an unknown entry
This commit is contained in:
parent
72ded27e98
commit
63c8cbae5b
@ -1,5 +1,6 @@
|
||||
use std::sync::atomic::AtomicBool;
|
||||
|
||||
use bstr::ByteSlice as _;
|
||||
use hashbrown::HashMap;
|
||||
use heed::RwTxn;
|
||||
use rand::SeedableRng as _;
|
||||
@ -152,7 +153,10 @@ pub fn write_from_bbqueue(
|
||||
}
|
||||
(key, None) => match database.delete(wtxn, key) {
|
||||
Ok(false) => {
|
||||
unreachable!("We tried to delete an unknown key: {key:?}")
|
||||
unreachable!(
|
||||
"We tried to delete an unknown key from {database_name}: {:?}",
|
||||
key.as_bstr()
|
||||
)
|
||||
}
|
||||
Ok(_) => (),
|
||||
Err(error) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user