Commit 9ebb886a032f3a3767c24dce9a343311ea8c4481
Handle bad refs better
cel committed on 5/12/2017, 6:20:18 AMParent: 1e1d32ef170391da41c2c064fc9a557a1ba667d1
Files changed
lib/render-msg.js | changed |
lib/render-msg.js | ||
---|---|---|
@@ -341,9 +341,9 @@ | ||
341 | 341 … | var self = this |
342 | 342 … | var ref = u.linkDest(link) |
343 | 343 … | if (!ref) return cb(null, '') |
344 | 344 … | self.getName(ref, function (err, name) { |
345 | - if (err) return cb(err) | |
345 … | + if (err) name = truncate(ref, 10) | |
346 | 346 … | cb(null, h('a', {href: self.toUrl(ref)}, name)) |
347 | 347 … | }) |
348 | 348 … | } |
349 | 349 … |
Built with git-ssb-web