From df43230844b5c16238103a2962c8b415377b30a2 Mon Sep 17 00:00:00 2001 From: Olivier Bourgain Date: Thu, 12 May 2016 20:32:30 +0200 Subject: [PATCH] Add index name and uuid in IndexAlreadyExistsException default message Relates #18274 --- .../elasticsearch/indices/IndexAlreadyExistsException.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/org/elasticsearch/indices/IndexAlreadyExistsException.java b/core/src/main/java/org/elasticsearch/indices/IndexAlreadyExistsException.java index 9d6616e4e2b..f64addfd2f1 100644 --- a/core/src/main/java/org/elasticsearch/indices/IndexAlreadyExistsException.java +++ b/core/src/main/java/org/elasticsearch/indices/IndexAlreadyExistsException.java @@ -32,7 +32,7 @@ import java.io.IOException; public class IndexAlreadyExistsException extends ElasticsearchException { public IndexAlreadyExistsException(Index index) { - this(index, "already exists"); + this(index, "index " + index.toString() + " already exists"); } public IndexAlreadyExistsException(Index index, String message) { @@ -48,4 +48,4 @@ public class IndexAlreadyExistsException extends ElasticsearchException { public RestStatus status() { return RestStatus.BAD_REQUEST; } -} \ No newline at end of file +}