influxdb-rust icon indicating copy to clipboard operation
influxdb-rust copied to clipboard

Include InfluxDB error string in crate errors

Open Empty2k12 opened this issue 1 year ago • 0 comments

In #150 error types were adapted, however it would be good to adapt the errors even further to include the error string returned from the InfluxDB API. Such an error response can look as follows "{ \"code\":\"invalid\",\"message\":\"failed to parse query: found MEASUREMENT, expected FROM, WHERE at line 1, char 8\"}" and it should be decided if only the message or the whole response body should be included in the error.

Empty2k12 avatar Apr 04 '24 14:04 Empty2k12