From fdec15f204220c4b27df2ee77cf21622fc97917c Mon Sep 17 00:00:00 2001 From: Martijn van Groningen Date: Sun, 30 Jun 2013 18:24:30 +0200 Subject: [PATCH] Changes validation error message --- .../java/org/elasticsearch/action/update/UpdateRequest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/elasticsearch/action/update/UpdateRequest.java b/src/main/java/org/elasticsearch/action/update/UpdateRequest.java index d9e0559da75..271dddd9f5b 100644 --- a/src/main/java/org/elasticsearch/action/update/UpdateRequest.java +++ b/src/main/java/org/elasticsearch/action/update/UpdateRequest.java @@ -110,7 +110,7 @@ public class UpdateRequest extends InstanceShardOperationRequest validationException = addValidationError("can't provide both script and doc", validationException); } if (doc == null && docAsUpsert) { - validationException = addValidationError("can't say to upsert doc without providing doc", validationException); + validationException = addValidationError("doc must be specified if doc_as_upsert is enabled", validationException); } return validationException; }