aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-04-14 20:35:18 -0700
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-04-14 20:35:18 -0700
commit5f4a6f69a08006fe721e19698218e41b2157b5cb (patch)
tree4158de3f0c2b9c3201ccf170bdad986bc244322f
parent684a05c5f4bc21386aa5f3a7f103836a60cc7f00 (diff)
downloadpatchfoo-5f4a6f69a08006fe721e19698218e41b2157b5cb.tar.gz
patchfoo-5f4a6f69a08006fe721e19698218e41b2157b5cb.zip
Handle getting name for bad ref more gracefully
-rw-r--r--lib/render-msg.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/render-msg.js b/lib/render-msg.js
index 1873128..b156820 100644
--- a/lib/render-msg.js
+++ b/lib/render-msg.js
@@ -339,7 +339,7 @@ RenderMsg.prototype.link1 = function (link, cb) {
if (!ref) return cb(), ''
var a = h('a', {href: self.toUrl(ref)}, ref)
self.getName(ref, function (err, name) {
- if (err) return cb(err)
+ if (err) name = ref
a.childNodes[0].textContent = name
cb()
})