Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missleading error Message #44

Closed
neophob opened this issue Feb 4, 2015 · 0 comments
Closed

Missleading error Message #44

neophob opened this issue Feb 4, 2015 · 0 comments

Comments

@neophob
Copy link

neophob commented Feb 4, 2015

I created a LightState for a single lamp using an invalid id (for example 0 instead of 1). The error message is a bit missleading, here's the stack trace:

   "error":"Cannot call method 'hasRGB' of undefined",
   "stack":"TypeError: Cannot call method 'hasRGB' of undefined\n    at HueApi._getLightStateOptions (
   /a-project/node_modules/node-hue-api/hue-api/index.js:996:15)\n    at HueApi.setLightState (
   /a-project/node_modules/node-hue-api/hue-api/index.js:322:24)\n    at Object.exports.lampDim (
peter-murray pushed a commit that referenced this issue Feb 8, 2015
- Added function to separate group lights into models
- Improved tests to cover issues #45 and #44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant