stephenyeargin / hubot-grafana

📈🤖 Query Grafana dashboards
http://docs.grafana.org/tutorials/hubot_howto/
MIT License
154 stars 48 forks source link

Improve error handling #127

Closed stephenyeargin closed 3 years ago

stephenyeargin commented 4 years ago

Prior to this PR, invalid responses from the Grafana API would cause a SyntaxError within the JSON.parse() method and not offer the user any further feedback. This PR catches those instances with a more descriptive error.

Related: #126 #91