mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-10-10 21:56:27 +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(_) => {
|
||||
Code::EditDocumentsByFunctionError
|
||||
}
|
||||
UserError::NetworkShardingWithoutSelf => Code::InvalidNetworkSharding,
|
||||
UserError::NetworkMissingUrl(_) => Code::MissingNetworkUrl,
|
||||
UserError::CelluliteError(err) => match err {
|
||||
cellulite::Error::BuildCanceled
|
||||
| cellulite::Error::VersionMismatchOnBuild(_)
|
||||
|
@@ -432,6 +432,10 @@ and can not be more than 511 bytes.", .document_id.to_string()
|
||||
InvalidChatSettingsDocumentTemplateMaxBytes,
|
||||
#[error("{0}")]
|
||||
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 {
|
||||
|
Reference in New Issue
Block a user