mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-24 22:09:24 +00:00
add more info on failure to derive xcontent
This commit is contained in:
parent
36e6102a1b
commit
7e0182d882
@ -178,7 +178,7 @@ public class XContentFactory {
|
||||
public static XContent xContent(byte[] data, int offset, int length) {
|
||||
XContentType type = xContentType(data, offset, length);
|
||||
if (type == null) {
|
||||
throw new ElasticSearchParseException("Failed to derive xcontent from " + Arrays.toString(data));
|
||||
throw new ElasticSearchParseException("Failed to derive xcontent from (offset=" + offset + ", length=" + length + "): " + Arrays.toString(data));
|
||||
}
|
||||
return xContent(type);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user