mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-25 14:26:27 +00:00
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:
parent
e6e517a7a4
commit
e7ebfa0c69
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user