AbstractElasticIndex: Don't mention "change" in exception message

This abstract class is used for all index types. Mentioning "change"
in the error message will cause confusion.

Change-Id: I3260228121a0208945ef6a14357d6c47f5345828
This commit is contained in:
David Pursehouse
2018-05-29 12:47:45 +09:00
parent 8f589c93cf
commit 21d015ef9e

View File

@@ -151,7 +151,7 @@ abstract class AbstractElasticIndex<K, V> implements Index<K, V> {
int statusCode = response.getStatusLine().getStatusCode();
if (statusCode != HttpStatus.SC_OK) {
throw new IOException(
String.format("Failed to delete change %s in index %s: %s", c, indexName, statusCode));
String.format("Failed to delete %s from index %s: %s", c, indexName, statusCode));
}
}