mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-10-10 21:56:27 +00:00
reintroduce the unrecoverable error and use it where its supposed to be used
This commit is contained in:
@@ -319,11 +319,9 @@ impl IndexScheduler {
|
||||
let ret = catch_unwind(AssertUnwindSafe(|| self.process_upgrade(progress)));
|
||||
match ret {
|
||||
Ok(Ok(())) => (),
|
||||
Ok(Err(e)) => return Err(Error::TaskDatabaseUpgrade(Box::new(e))),
|
||||
Ok(Err(e)) => return Err(Error::DatabaseUpgrade(Box::new(e))),
|
||||
Err(_e) => {
|
||||
return Err(Error::TaskDatabaseUpgrade(Box::new(
|
||||
Error::ProcessBatchPanicked,
|
||||
)));
|
||||
return Err(Error::DatabaseUpgrade(Box::new(Error::ProcessBatchPanicked)));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user