mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-10-11 06:06:32 +00:00
Add existing errors as UserError as they will now be triggered inside of the task
This commit is contained in:
@@ -529,6 +529,8 @@ impl ErrorCode for milli::Error {
|
|||||||
| UserError::DocumentEditionCompilationError(_) => {
|
| UserError::DocumentEditionCompilationError(_) => {
|
||||||
Code::EditDocumentsByFunctionError
|
Code::EditDocumentsByFunctionError
|
||||||
}
|
}
|
||||||
|
UserError::NetworkShardingWithoutSelf => Code::InvalidNetworkSharding,
|
||||||
|
UserError::NetworkMissingUrl(_) => Code::MissingNetworkUrl,
|
||||||
UserError::CelluliteError(err) => match err {
|
UserError::CelluliteError(err) => match err {
|
||||||
cellulite::Error::BuildCanceled
|
cellulite::Error::BuildCanceled
|
||||||
| cellulite::Error::VersionMismatchOnBuild(_)
|
| cellulite::Error::VersionMismatchOnBuild(_)
|
||||||
|
@@ -432,6 +432,10 @@ and can not be more than 511 bytes.", .document_id.to_string()
|
|||||||
InvalidChatSettingsDocumentTemplateMaxBytes,
|
InvalidChatSettingsDocumentTemplateMaxBytes,
|
||||||
#[error("{0}")]
|
#[error("{0}")]
|
||||||
DocumentEmbeddingError(String),
|
DocumentEmbeddingError(String),
|
||||||
|
#[error("enabling the sharding requires `.self` to be set\n - Hint: Disable `sharding` or set `self` to a value.")]
|
||||||
|
NetworkShardingWithoutSelf,
|
||||||
|
#[error("Field `.remotes.{0}.url` cannot be set to `null`")]
|
||||||
|
NetworkMissingUrl(String),
|
||||||
}
|
}
|
||||||
|
|
||||||
impl From<crate::vector::Error> for Error {
|
impl From<crate::vector::Error> for Error {
|
||||||
|
Reference in New Issue
Block a user