From a28f9dbb28295200e56066ac3ae75bc97b74669b Mon Sep 17 00:00:00 2001 From: cel Date: Mon, 10 Dec 2018 10:45:59 -1000 Subject: Handle missing rpc methods --- lib/contacts.js | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/contacts.js') 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, -- cgit v1.2.3