git ssb

16+

cel / patchfoo



Commit d51b2ca77b945cef037d2da636d80ee9fa0cc4ce

Handle more missing blobs

cel committed on 6/1/2017, 3:29:45 AM
Parent: 32a86d6e8bf6ffedf4c7dd37e49f58cf07a95e80

Files changed

lib/serve.jschanged
lib/serve.jsView
@@ -1670,8 +1670,10 @@
16701670 obj: id,
16711671 headMsgId: headMsgId,
16721672 type: type,
16731673 }, function (err, msg) {
1674 + if (err && err.name === 'BlobNotFoundError')
1675 + return cb(null, self.askWantBlobsForm(err.links))
16741676 if (err && err.name === 'ObjectNotFoundError')
16751677 return cb(null, [
16761678 ph('code', u.escapeHTML(id.substr(0, 8))), '(missing)'])
16771679 if (err) return cb(err)

Built with git-ssb-web