timcharper / homebridge-opensprinkler

OpenSprinkler plugin for Homebridge
13 stars 7 forks source link

API connection failure should provide useful error #9

Open jmbwell opened 5 years ago

jmbwell commented 5 years ago

An incorrect hostname, an incorrect password, or other failure of the plugin to connect to the API causes the following error: Cannot read property 'snames' of undefined It would be helpful at some point to detect an API connection failure, note the cause, and provide useful feedback in the log.