Changes validation error message

This commit is contained in:
Martijn van Groningen 2013-06-30 18:24:30 +02:00
parent e815f257cc
commit fdec15f204
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ public class UpdateRequest extends InstanceShardOperationRequest<UpdateRequest>
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;
}