diff --git a/crates/meilisearch/src/routes/indexes/documents.rs b/crates/meilisearch/src/routes/indexes/documents.rs index 1aba81238..fb173ef3e 100644 --- a/crates/meilisearch/src/routes/indexes/documents.rs +++ b/crates/meilisearch/src/routes/indexes/documents.rs @@ -623,7 +623,7 @@ fn documents_by_query( let mut parsed_ids = Vec::with_capacity(ids.len()); for (index, id) in ids.into_iter().enumerate() { let id = id.try_into().map_err(|error| { - let msg = format!("In `.ids[{index}]`:{error}"); + let msg = format!("In `.ids[{index}]`: {error}"); ResponseError::from_msg(msg, Code::InvalidDocumentIds) })?; parsed_ids.push(id) diff --git a/crates/meilisearch/tests/documents/get_documents.rs b/crates/meilisearch/tests/documents/get_documents.rs index 2b30d15b1..bcd81043f 100644 --- a/crates/meilisearch/tests/documents/get_documents.rs +++ b/crates/meilisearch/tests/documents/get_documents.rs @@ -658,7 +658,7 @@ async fn get_document_invalid_ids() { snapshot!(code, @"400 Bad Request"); snapshot!(json_string!(response, { ".enqueuedAt" => "[date]" }), @r###" { - "message": "In `.ids[1]`:Document identifier `\"illegal/docid\"` is invalid. A document identifier can be of type integer or string, only composed of alphanumeric characters (a-z A-Z 0-9), hyphens (-) and underscores (_), and can not be more than 511 bytes.", + "message": "In `.ids[1]`: Document identifier `\"illegal/docid\"` is invalid. A document identifier can be of type integer or string, only composed of alphanumeric characters (a-z A-Z 0-9), hyphens (-) and underscores (_), and can not be more than 511 bytes.", "code": "invalid_document_ids", "type": "invalid_request", "link": "https://docs.meilisearch.com/errors#invalid_document_ids"