aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-05-31 17:29:45 -1000
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-05-31 17:29:45 -1000
commitd51b2ca77b945cef037d2da636d80ee9fa0cc4ce (patch)
tree66d58efba784b61bb33007c401ebec3414ce6a7e
parent32a86d6e8bf6ffedf4c7dd37e49f58cf07a95e80 (diff)
downloadpatchfoo-d51b2ca77b945cef037d2da636d80ee9fa0cc4ce.tar.gz
patchfoo-d51b2ca77b945cef037d2da636d80ee9fa0cc4ce.zip
Handle more missing blobs
-rw-r--r--lib/serve.js2
1 files changed, 2 insertions, 0 deletions
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)'])