fix #1432 modify an error message
This commit is contained in:
parent
eb1bf60acc
commit
c5ba070213
1 changed files with 0 additions and 2 deletions
|
@ -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() + "\"}";
|
||||
|
|
Loading…
Add table
Reference in a new issue