aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-12-14 13:55:48 -0800
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-12-14 13:55:48 -0800
commit602514bc8c31a554b1723fd994306c1515b3999d (patch)
tree4760a49ce3d57d6e6990713899436ef821e03685 /lib
parentcbebe547ab353a002701bc221c538e9c20340487 (diff)
downloadpatchfoo-602514bc8c31a554b1723fd994306c1515b3999d.tar.gz
patchfoo-602514bc8c31a554b1723fd994306c1515b3999d.zip
Fix error
Diffstat (limited to 'lib')
-rw-r--r--lib/serve.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/serve.js b/lib/serve.js
index 066f5d4..9dec11b 100644
--- a/lib/serve.js
+++ b/lib/serve.js
@@ -578,7 +578,11 @@ Serve.prototype.compose = function (ext) {
channel: '',
redirectToPublishedMsg: true,
}, function (err, composer) {
- if (err) return cb(err)
+ if (err) return pull(
+ pull.once(u.renderError(err).outerHTML),
+ self.wrapPage('compose'),
+ self.respondSink(500)
+ )
pull(
pull.once(u.toHTML(composer)),
self.wrapPage('compose'),