aboutsummaryrefslogtreecommitdiff
path: root/lib/serve.js
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2018-01-21 20:08:53 -1000
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2018-01-21 20:08:53 -1000
commit713049a7b0039a73ca35c2ce1ef6a47ee621d3aa (patch)
treedce1453edc37f06980721bb95bacb8e65f65e8b8 /lib/serve.js
parent4f819768f2828788b1139b5454abf90dea4cc050 (diff)
downloadpatchfoo-713049a7b0039a73ca35c2ce1ef6a47ee621d3aa.tar.gz
patchfoo-713049a7b0039a73ca35c2ce1ef6a47ee621d3aa.zip
Prompt for missing blobs on git diff page
Diffstat (limited to 'lib/serve.js')
-rw-r--r--lib/serve.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/serve.js b/lib/serve.js
index 2eecd09..09f7aa3 100644
--- a/lib/serve.js
+++ b/lib/serve.js
@@ -2105,6 +2105,8 @@ Serve.prototype.gitDiff = function (revs) {
}, done())
self.getMsgDecryptedMaybeOoo(self.query.msg, done())
done(function (err, msg1, msg2) {
+ if (err && err.name === 'BlobNotFoundError')
+ return self.askWantBlobs(err.links)
if (err) return pull(
pull.once(u.renderError(err).outerHTML),
self.wrapPage('git diff ' + revs),