mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-12-23 05:00:06 +01:00
improve panic message
This commit is contained in:
parent
e5175f5dc1
commit
89846d1656
@ -114,11 +114,11 @@ where
|
||||
|
||||
match task_result {
|
||||
Ok(Ok(())) => {
|
||||
(*dump_info.write().await).as_mut().expect("Dump actor should have an inbox").done();
|
||||
(*dump_info.write().await).as_mut().expect("Inconsistent dump service state").done();
|
||||
info!("Dump succeed");
|
||||
}
|
||||
Ok(Err(e)) => {
|
||||
(*dump_info.write().await).as_mut().expect("Dump actor should have an inbox").with_error(e.to_string());
|
||||
(*dump_info.write().await).as_mut().expect("Inconsistent dump service state").with_error(e.to_string());
|
||||
error!("Dump failed: {}", e);
|
||||
}
|
||||
Err(_) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user