Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Commit 35c21e7

Browse files
committed
return error
1 parent 83df4b4 commit 35c21e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/net.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ func (n *OpenBazaarNode) SendOfflineMessage(p peer.ID, k *libp2p.PubKey, m *pb.M
100100

101101
relayciphertext, err := net.Encrypt(*k, messageBytes)
102102
if err != nil {
103-
fmt.Errorf("Error: %s", err.Error())
103+
return fmt.Errorf("Error: %s", err.Error())
104104
}
105105

106106
// Base64 encode

0 commit comments

Comments
 (0)