Report casting errors
This commit is contained in:
parent
85a45a27f6
commit
76175b48a3
|
@ -8,6 +8,7 @@ import (
|
|||
model3 "cwtch.im/cwtch/protocol/model"
|
||||
"encoding/base64"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"git.openprivacy.ca/cwtch.im/tapir"
|
||||
"git.openprivacy.ca/cwtch.im/tapir/applications"
|
||||
"git.openprivacy.ca/cwtch.im/tapir/networks/tor"
|
||||
|
@ -593,6 +594,7 @@ func (e *engine) sendPeerMessage(handle string, message model3.PeerMessage) erro
|
|||
if ok {
|
||||
return peerApp.SendMessage(message)
|
||||
}
|
||||
return fmt.Errorf("could not find peer app to send message to: %v", handle)
|
||||
}
|
||||
log.Errorf("could not send peer message: %v", err)
|
||||
return err
|
||||
|
|
Loading…
Reference in New Issue