aboutsummaryrefslogtreecommitdiff
path: root/lib/contacts.js
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2018-12-10 10:45:59 -1000
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2018-12-10 10:45:59 -1000
commita28f9dbb28295200e56066ac3ae75bc97b74669b (patch)
treebc981f3f7e8c0d60a1559782b0f35aba6b1d9a98 /lib/contacts.js
parentdee0312beda7583df48e969e27efc4e1865edc71 (diff)
downloadpatchfoo-a28f9dbb28295200e56066ac3ae75bc97b74669b.tar.gz
patchfoo-a28f9dbb28295200e56066ac3ae75bc97b74669b.zip
Handle missing rpc methods
Diffstat (limited to 'lib/contacts.js')
-rw-r--r--lib/contacts.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/contacts.js b/lib/contacts.js
index e1d4a0a..39e8cee 100644
--- a/lib/contacts.js
+++ b/lib/contacts.js
@@ -10,6 +10,7 @@ function Contacts(sbot) {
}
Contacts.prototype._createContactStream = function (source, dest) {
+ if (!this.sbot.links) return pull.error(new Error('missing sbot.links'))
return pull(
this.sbot.links({
source: source,