From acb06cb3e6d160039883af7a73aa518bb0da2b67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Renault?= Date: Mon, 10 Feb 2025 16:53:50 +0100 Subject: [PATCH] Improve the error message when missing documents Co-authored-by: Tamo --- crates/index-scheduler/src/error.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/index-scheduler/src/error.rs b/crates/index-scheduler/src/error.rs index b5072276c..280127d04 100644 --- a/crates/index-scheduler/src/error.rs +++ b/crates/index-scheduler/src/error.rs @@ -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),