forked from MirrorHub/mautrix-whatsapp
ExtendedConn.HandleJsonMessage: call jsonParseError
In case of something goes wrong for parsing the message as JSON message, we should tell this the error handler.
This commit is contained in:
parent
da5e399333
commit
3c7d77a456
1 changed files with 1 additions and 0 deletions
|
@ -68,6 +68,7 @@ func (ext *ExtendedConn) HandleJsonMessage(message string) {
|
||||||
msg := JSONMessage{}
|
msg := JSONMessage{}
|
||||||
err := json.Unmarshal([]byte(message), &msg)
|
err := json.Unmarshal([]byte(message), &msg)
|
||||||
if err != nil || len(msg) < 2 {
|
if err != nil || len(msg) < 2 {
|
||||||
|
ext.jsonParseError(err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue