git ssb

2+

Dominic / ssb-client



Commit bf495627b2e9547f46393b5b8d9c449b7561ee45

oops: need fs to read default manifest file

Dominic Tarr committed on 12/19/2015, 10:47:13 PM
Parent: c1a9f36fb8654b836e254880ed4de71e4c9bf187

Files changed

index.jschanged
index.jsView
@@ -1,9 +1,12 @@
1-var path = require('path')
2-var ssbKeys = require('ssb-keys')
3-var config = require('ssb-config')
1+var path = require('path')
2+var ssbKeys = require('ssb-keys')
3+var config = require('ssb-config')
44 var SecretStack = require('secret-stack')
5-var explain = require('explain-error')
5+var explain = require('explain-error')
6+var path = require('path')
7+var fs = require('fs')
8+
69 var cap =
710 new Buffer('1KHLiKZvAvjbY1ziZEHMXawbCEIM6qwjCDm3VYRan/s=', 'base64')
811
912
@@ -35,6 +38,9 @@
3538 throw explain(err, 'could not load manifest file')
3639 }
3740 })()
3841
39- createNode.createClient({keys: keys, manifest: manifest})(opts, cb)
42+ createNode.createClient({keys: keys, manifest: manifest})(opts, function (err, sbot) {
43+ if(err) err = explain(err, 'could not connect to sbot')
44+ cb(err, sbot)
45+ })
4046 }

Built with git-ssb-web