grafana / sqlds

A package that assists writing SQL-driven datasources
Apache License 2.0
17 stars 12 forks source link

Improve error handling for invalid queries #65

Closed nineinchnick closed 2 years ago

nineinchnick commented 2 years ago

When the frontend sends an invalid query, the backend plugin will panic because it tries to decode error frames from a nil object. Also, the actual error message from the JSON decoder is not returned or logged. This PR tries to address this.

andresmgot commented 2 years ago

released 2.3.8 with your change so it can be used by plugins