diff options
author | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2017-05-11 20:20:18 -1000 |
---|---|---|
committer | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2017-05-11 20:20:18 -1000 |
commit | 9ebb886a032f3a3767c24dce9a343311ea8c4481 (patch) | |
tree | 4bd7b0d4acd5821919739f41ba305f31ff9bbf75 /lib | |
parent | 1e1d32ef170391da41c2c064fc9a557a1ba667d1 (diff) | |
download | patchfoo-9ebb886a032f3a3767c24dce9a343311ea8c4481.tar.gz patchfoo-9ebb886a032f3a3767c24dce9a343311ea8c4481.zip |
Handle bad refs better
Diffstat (limited to 'lib')
-rw-r--r-- | lib/render-msg.js | 2 |
1 files changed, 1 insertions, 1 deletions
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)) }) } |