mirror of
				https://github.com/meilisearch/meilisearch.git
				synced 2025-10-31 07:56:28 +00:00 
			
		
		
		
	Pimp error where no document is provided
This commit is contained in:
		| @@ -695,10 +695,10 @@ async fn error_add_no_documents() { | ||||
|     let (response, code) = index.add_documents(json!([]), None).await; | ||||
|  | ||||
|     let expected_response = json!({ | ||||
|         "message": "A json payload is missing.", | ||||
|         "code": "missing_payload", | ||||
|         "message": "The `json` payload must contain at least one document.", | ||||
|         "code": "malformed_payload", | ||||
|         "type": "invalid_request", | ||||
|         "link": "https://docs.meilisearch.com/errors#missing_payload" | ||||
|         "link": "https://docs.meilisearch.com/errors#malformed_payload" | ||||
|     }); | ||||
|  | ||||
|     assert_eq!(response, expected_response); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user