simdjson-java icon indicating copy to clipboard operation
simdjson-java copied to clipboard

Add context to error messages

Open piotrrzysko opened this issue 2 years ago • 0 comments
trafficstars

For debugging purposes, it would be helpful to include information in error messages about what caused a given error, and preferably, where it occurred. For example, instead of returning a message like:

Invalid number. Exponent indicator has to be followed by a digit.

It would be more informative to specify the position in the input where the invalid number is, and/or attach the number to the message.

piotrrzysko avatar Sep 11 '23 08:09 piotrrzysko