mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 11:57:07 +02:00
Merge #2008
2008: bug(lib): fix get dumps bad error code r=curquiza a=MarinPostma fix bad error code being returned whet getting a dump status, and add a test close #1994 Co-authored-by: Marin Postma <postma.marin@protonmail.com>
This commit is contained in:
commit
845d3114ea
3 changed files with 28 additions and 4 deletions
|
@ -59,10 +59,7 @@ impl ErrorCode for IndexControllerError {
|
|||
IndexControllerError::DocumentFormatError(e) => e.error_code(),
|
||||
IndexControllerError::MissingPayload(_) => Code::MissingPayload,
|
||||
IndexControllerError::PayloadTooLarge => Code::PayloadTooLarge,
|
||||
IndexControllerError::DumpError(DumpActorError::DumpAlreadyRunning) => {
|
||||
Code::DumpAlreadyInProgress
|
||||
}
|
||||
IndexControllerError::DumpError(_) => Code::DumpProcessFailed,
|
||||
IndexControllerError::DumpError(e) => e.error_code(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue