diff options
author | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2018-12-10 10:45:59 -1000 |
---|---|---|
committer | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2018-12-10 10:45:59 -1000 |
commit | a28f9dbb28295200e56066ac3ae75bc97b74669b (patch) | |
tree | bc981f3f7e8c0d60a1559782b0f35aba6b1d9a98 /lib/contacts.js | |
parent | dee0312beda7583df48e969e27efc4e1865edc71 (diff) | |
download | patchfoo-a28f9dbb28295200e56066ac3ae75bc97b74669b.tar.gz patchfoo-a28f9dbb28295200e56066ac3ae75bc97b74669b.zip |
Handle missing rpc methods
Diffstat (limited to 'lib/contacts.js')
-rw-r--r-- | lib/contacts.js | 1 |
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, |