From d51b2ca77b945cef037d2da636d80ee9fa0cc4ce Mon Sep 17 00:00:00 2001 From: cel Date: Wed, 31 May 2017 17:29:45 -1000 Subject: Handle more missing blobs --- lib/serve.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/serve.js b/lib/serve.js index 4481439..c1353aa 100644 --- a/lib/serve.js +++ b/lib/serve.js @@ -1671,6 +1671,8 @@ Serve.prototype.gitObjectLinks = function (headMsgId, type) { headMsgId: headMsgId, type: type, }, function (err, msg) { + if (err && err.name === 'BlobNotFoundError') + return cb(null, self.askWantBlobsForm(err.links)) if (err && err.name === 'ObjectNotFoundError') return cb(null, [ ph('code', u.escapeHTML(id.substr(0, 8))), '(missing)']) -- cgit v1.2.3