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…
Reference in New Issue