Introduce the new invalid sortable error codes

This commit is contained in:
Kerollmops 2021-08-24 18:52:28 +02:00
parent 2d8dd87cad
commit 51387b2c80
No known key found for this signature in database
GPG key ID: 92ADA4E935E71FA4
7 changed files with 25 additions and 21 deletions

View file

@ -103,6 +103,7 @@ impl ErrorCode for MilliError<'_> {
UserError::PrimaryKeyCannotBeReset => Code::PrimaryKeyAlreadyPresent,
UserError::UnknownInternalDocumentId { .. } => Code::DocumentNotFound,
UserError::InvalidFacetsDistribution { .. } => Code::BadRequest,
UserError::InvalidSortableAttribute { .. } => Code::Sort,
}
}
}