Commit bf495627b2e9547f46393b5b8d9c449b7561ee45
oops: need fs to read default manifest file
Dominic Tarr committed on 12/19/2015, 10:47:13 PMParent: c1a9f36fb8654b836e254880ed4de71e4c9bf187
Files changed
index.js | changed |
index.js | ||
---|---|---|
@@ -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') | |
4 | 4 | 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 | + | |
6 | 9 | var cap = |
7 | 10 | new Buffer('1KHLiKZvAvjbY1ziZEHMXawbCEIM6qwjCDm3VYRan/s=', 'base64') |
8 | 11 | |
9 | 12 | |
@@ -35,6 +38,9 @@ | ||
35 | 38 | throw explain(err, 'could not load manifest file') |
36 | 39 | } |
37 | 40 | })() |
38 | 41 | |
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 | + }) | |
40 | 46 | } |
Built with git-ssb-web