git ssb

0+

cel / ssb-exec



Commit 06f263c1100b77af62177e4b11348b6b4574caae

fix async

cel committed on 2/5/2019, 8:55:46 AM
Parent: 0746ae0dd03e573e8cccf7ec2ed1cf97d6f7a044

Files changed

index.jschanged
index.jsView
@@ -29,9 +29,9 @@
2929 return cb(null, module)
3030 } catch(e) {
3131 if (!tried && e && (e.code === 'ENOENT' || e.code === 'MODULE_NOT_FOUND')) {
3232 var m = /(sha256)\/([0-9a-f]{2})\/([0-9a-f]{62})/.exec(e.path || e.message)
33- if (!m) throw e
33 + if (!m) return cb(e)
3434 var blobId = '&' + new Buffer(m[2] + m[3], 'hex').toString('base64') + '.' + m[1]
3535 if (!sbot.blobs) return cb(new Error('Missing ssb-blobs plugin'))
3636 if (typeof sbot.blobs.want !== 'function') return cb(new Error('missing blobs.want method'))
3737 return sbot.blobs.want(blobId, function (err, has) {

Built with git-ssb-web