From 5f4a6f69a08006fe721e19698218e41b2157b5cb Mon Sep 17 00:00:00 2001 From: cel Date: Fri, 14 Apr 2017 20:35:18 -0700 Subject: Handle getting name for bad ref more gracefully --- lib/render-msg.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() }) -- cgit v1.2.3