diff options
author | Collin Guarino <collin.guarino@gmail.com> | 2016-01-30 13:18:03 -0500 |
---|---|---|
committer | Collin Guarino <collin.guarino@gmail.com> | 2016-01-30 13:18:03 -0500 |
commit | feb2ae1aea1e0dfe1f9926f34cfd48353c61f53f (patch) | |
tree | 2a6483da2de89b8dc9a96759aa106e83f0ff5069 | |
parent | d2ebbbad8cf0cd2f7eaf66f49b9903e547d10076 (diff) |
Added some command specific errors.
-rw-r--r-- | bridge.go | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -86,7 +86,15 @@ var ( processing of the command. This indicates an error in the bridge, not in the message being sent.`} - // TODO: Command specific error numbers and descriptions + // Command Specific Errors + ErrLink = Error{101, "Link button not pressed.", + `/config/linkbutton is false. Link button has + not been pressed in last 30 seconds.`} + ErrDHCP = Error{110, "DHCP cannot be disabled.", + "DHCP can only be disabled if there is a valid static IP configuration"} + ErrUpdate = Error{111, "Invalid updatestate.", + "Checkforupdate can only be set in updatestate 0 and 1."} + // TODO: Need to add 201, 301, 305, 306, 402, 403, 501, 502, 601... ) // NewBridge defines hardware that is compatible with Hue. |