From 9ebb886a032f3a3767c24dce9a343311ea8c4481 Mon Sep 17 00:00:00 2001 From: cel Date: Thu, 11 May 2017 20:20:18 -1000 Subject: Handle bad refs better --- 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 2a0e7df..4ba960c 100644 --- a/lib/render-msg.js +++ b/lib/render-msg.js @@ -342,7 +342,7 @@ RenderMsg.prototype.link = function (link, cb) { var ref = u.linkDest(link) if (!ref) return cb(null, '') self.getName(ref, function (err, name) { - if (err) return cb(err) + if (err) name = truncate(ref, 10) cb(null, h('a', {href: self.toUrl(ref)}, name)) }) } -- cgit v1.2.3