git ssb

3+

cel / ssb-npm-registry



Commit d5ff32a527674c60dbf3e18c20036313e529267f

bootstrap: fix detecting missing blob

cel committed on 9/3/2018, 5:56:44 AM
Parent: d19123582efc4df2c22ff4e64d3af143cf734bc0

Files changed

index.jschanged
index.jsView
@@ -376,9 +376,9 @@
376376
377377 function getBlob(sbot, id, cb) {
378378 var blobs = sbot.blobs
379379 blobs.size(id, function (err, size) {
380- if (err) return cb(err)
380 + if (err && err.code !== 'ENOENT') return cb(err)
381381 if (typeof size === 'number') cb(null, blobs.get(id), size)
382382 else blobs.want(id, function (err, got) {
383383 if (err) cb(err)
384384 else if (!got) cb('missing blob ' + id)

Built with git-ssb-web