Report casting errors
continuous-integration/drone/pr Build is pending Details
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Sarah Jamie Lewis 2021-09-03 12:30:26 -07:00
parent 85a45a27f6
commit 76175b48a3
1 changed files with 2 additions and 0 deletions

View File

@ -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