We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ef6b35 commit 74e5c0fCopy full SHA for 74e5c0f
src/main/java/io/confluent/connect/elasticsearch/ElasticsearchWriter.java
@@ -247,7 +247,8 @@ public void createIndicesForTopics(Set<String> assignedTopics) {
247
try {
248
JestResult result = client.execute(createIndex);
249
if (!result.isSucceeded()) {
250
- throw new ConnectException("Could not create index:" + index);
+ String msg = result.getErrorMessage() != null ? ": " + result.getErrorMessage() : "";
251
+ throw new ConnectException("Could not create index '" + index + "'" + msg);
252
}
253
} catch (IOException e) {
254
throw new ConnectException(e);
0 commit comments