Skip to content

Commit ab3a96d

Browse files
committed
Improve comment and error text formatting
1 parent 3dc7704 commit ab3a96d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

quickwit/quickwit-serve/src/elasticsearch_api/bulk_v2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ pub(crate) async fn elastic_bulk_ingest_v2(
123123
)
124124
})?;
125125

126-
// Validate index id early because propagating back the right error (400)
126+
// Validate index ID early because propagating back the right error (400)
127127
// from deeper ingest layers is harder
128128
if validate_identifier("", &index_id).is_err() {
129129
let invalid_item = make_invalid_index_id_item(index_id.clone(), meta.es_doc_id);

quickwit/quickwit-serve/src/ingest_api/rest_handler.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,11 +215,11 @@ async fn ingest_v2(
215215
None
216216
};
217217

218-
// Validate index id early because propagating back the right error (400)
218+
// Validate index ID early because propagating back the right error (400)
219219
// from deeper ingest layers is harder
220220
if validate_identifier("", &index_id).is_err() {
221221
return Err(IngestServiceError::BadRequest(
222-
"invalid index_id".to_string(),
222+
"invalid index ID".to_string(),
223223
));
224224
}
225225

0 commit comments

Comments
 (0)