From e7ebfa0c6900ded66a823888a16346be9d6faa0c Mon Sep 17 00:00:00 2001 From: Lee Hinman Date: Tue, 27 Sep 2016 08:42:47 -0600 Subject: [PATCH] Clean up confusing error message on unhandled endpoint It currently returns something like: ``` "No feature for name [_siohgjoidfhjfihfg]" ``` Which is not the most understandable message, this changes it to be a little more readable. Resolves #10946 --- .../elasticsearch/action/admin/indices/get/GetIndexRequest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/org/elasticsearch/action/admin/indices/get/GetIndexRequest.java b/core/src/main/java/org/elasticsearch/action/admin/indices/get/GetIndexRequest.java index 68878579259..0dd81075b83 100644 --- a/core/src/main/java/org/elasticsearch/action/admin/indices/get/GetIndexRequest.java +++ b/core/src/main/java/org/elasticsearch/action/admin/indices/get/GetIndexRequest.java @@ -77,7 +77,7 @@ public class GetIndexRequest extends ClusterInfoRequest { return feature; } } - throw new IllegalArgumentException("No feature for name [" + name + "]"); + throw new IllegalArgumentException("No endpoint or operation is available at [" + name + "]"); } public static Feature fromId(byte id) {