aboutsummaryrefslogtreecommitdiff
path: root/lib/app.js
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2018-01-08 19:11:15 -1000
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2018-01-08 19:11:15 -1000
commitcbf9a1d87eb43eaea73e6c019e7b4a2dca3bbaa6 (patch)
tree24636f66aece489ca88a0bb05f96ee02a51855fe /lib/app.js
parent498eaa3edf1241abdc6180410db97254c70e2185 (diff)
downloadpatchfoo-cbf9a1d87eb43eaea73e6c019e7b4a2dca3bbaa6.tar.gz
patchfoo-cbf9a1d87eb43eaea73e6c019e7b4a2dca3bbaa6.zip
Render line-comment messages
Diffstat (limited to 'lib/app.js')
-rw-r--r--lib/app.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/app.js b/lib/app.js
index 1d9b80f..21f45a4 100644
--- a/lib/app.js
+++ b/lib/app.js
@@ -101,7 +101,7 @@ App.prototype.error = console.error.bind(console, logPrefix)
App.prototype.unboxMsg = function (msg, cb) {
var self = this
- var c = msg.value && msg.value.content
+ var c = msg && msg.value && msg.value.content
if (typeof c !== 'string') cb(null, msg)
else self.unboxContent(c, function (err, content) {
if (err) {