UniversalDevicesInc / Polyglot

Polyglot Open Source
MIT License
24 stars 2 forks source link

Confusing error message from on_cmd #46

Closed jimboca closed 8 years ago

jimboca commented 8 years ago

The nodeserver_api on_cmd method gives this error message:

DEBUG    [04-17-2016 09:13:47] polyglot.nodeserver_manager: ihcam STDIN: {"cmd": {"node_address": "00626e495be9", "command": "SET_ALMOC", "uom": 2, "value": 0.0, "request_id": null}}
ERROR    [04-17-2016 09:13:47] polyglot.nodeserver_manager: ihcam: ERROR: on_cmd: node 00626e495be9 does not support command SET_ALMOC
ERROR    [04-17-2016 09:13:47] polyglot.nodeserver_manager: ihcam: Unsuccessful handling cmd in function on_cmd

But the code shows this error when the node does not exist, so it really should say the node is not found.

jimboca commented 8 years ago

Merged into unstable-rc