mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-27 04:25:06 +08:00
improve panic message
This commit is contained in:
parent
e5175f5dc1
commit
89846d1656
@ -114,11 +114,11 @@ where
|
|||||||
|
|
||||||
match task_result {
|
match task_result {
|
||||||
Ok(Ok(())) => {
|
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");
|
info!("Dump succeed");
|
||||||
}
|
}
|
||||||
Ok(Err(e)) => {
|
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);
|
error!("Dump failed: {}", e);
|
||||||
}
|
}
|
||||||
Err(_) => {
|
Err(_) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user