Commit d51b2ca77b945cef037d2da636d80ee9fa0cc4ce
Handle more missing blobs
cel committed on 6/1/2017, 3:29:45 AMParent: 32a86d6e8bf6ffedf4c7dd37e49f58cf07a95e80
Files changed
lib/serve.js | changed |
lib/serve.js | ||
---|---|---|
@@ -1670,8 +1670,10 @@ | ||
1670 | 1670 … | obj: id, |
1671 | 1671 … | headMsgId: headMsgId, |
1672 | 1672 … | type: type, |
1673 | 1673 … | }, function (err, msg) { |
1674 … | + if (err && err.name === 'BlobNotFoundError') | |
1675 … | + return cb(null, self.askWantBlobsForm(err.links)) | |
1674 | 1676 … | if (err && err.name === 'ObjectNotFoundError') |
1675 | 1677 … | return cb(null, [ |
1676 | 1678 … | ph('code', u.escapeHTML(id.substr(0, 8))), '(missing)']) |
1677 | 1679 … | if (err) return cb(err) |
Built with git-ssb-web