fix #1432 modify an error message

This commit is contained in:
Shinsuke Sugaya 2018-01-11 18:09:36 +09:00
parent eb1bf60acc
commit c5ba070213

View file

@ -39,9 +39,7 @@ public class PingResponse {
clusterStatus = response.getStatus().toString();
try {
final XContentBuilder builder = XContentFactory.jsonBuilder();
builder.startObject();
response.toXContent(builder, ToXContent.EMPTY_PARAMS);
builder.endObject();
message = builder.string();
} catch (final IOException e) {
message = "{ \"error\" : \"" + e.getMessage() + "\"}";