Improve error for unknown topics
This commit is contained in:
parent
52e0ec85e9
commit
e792a57cb4
2 changed files with 2 additions and 2 deletions
|
|
@ -37,5 +37,5 @@ let parseZigbeeEvent (message: Message) =
|
|||
| Some(JsonValue.String "off") -> Ok(ButtonPress PressedOff)
|
||||
| Some _ -> Error InvalidActionField
|
||||
| None -> Error MissingActionField
|
||||
| _ -> return! Error UnknownTopic
|
||||
| _ -> return! Error <| UnknownTopic message.Topic
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue