mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-07-27 00:31:02 +00:00
write the compat layer from v2 to v3
This commit is contained in:
@ -155,6 +155,7 @@ pub enum Code {
|
||||
InvalidApiKeyDescription,
|
||||
|
||||
UnretrievableErrorCode,
|
||||
MalformedDump,
|
||||
}
|
||||
|
||||
impl Code {
|
||||
@ -267,6 +268,7 @@ impl Code {
|
||||
UnretrievableErrorCode => {
|
||||
ErrCode::invalid("unretrievable_error_code", StatusCode::BAD_REQUEST)
|
||||
}
|
||||
MalformedDump => ErrCode::invalid("malformed_dump", StatusCode::BAD_REQUEST),
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user