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
This commit is contained in:
Lee Hinman 2016-09-27 08:42:47 -06:00
parent e6e517a7a4
commit e7ebfa0c69

View File

@ -77,7 +77,7 @@ public class GetIndexRequest extends ClusterInfoRequest<GetIndexRequest> {
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) {