Improve the error message when missing documents

Co-authored-by: Tamo <tamo@meilisearch.com>
This commit is contained in:
Clément Renault 2025-02-10 16:53:50 +01:00 committed by GitHub
parent 7d0d8f4445
commit acb06cb3e6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -109,7 +109,7 @@ pub enum Error {
InvalidIndexUid { index_uid: String },
#[error("Task `{0}` not found.")]
TaskNotFound(TaskId),
#[error("Task `{0}` does not provide any content file.")]
#[error("Task `{0}` does not contain any documents. Only `documentAdditionOrUpdate` tasks with the statuses `enqueued` or `processing` contain documents")]
TaskFileNotFound(TaskId),
#[error("Batch `{0}` not found.")]
BatchNotFound(BatchId),