diff options
-rw-r--r-- | lib/serve.js | 6 |
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'), |