diff options
author | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2017-12-14 13:55:48 -0800 |
---|---|---|
committer | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2017-12-14 13:55:48 -0800 |
commit | 602514bc8c31a554b1723fd994306c1515b3999d (patch) | |
tree | 4760a49ce3d57d6e6990713899436ef821e03685 | |
parent | cbebe547ab353a002701bc221c538e9c20340487 (diff) | |
download | patchfoo-602514bc8c31a554b1723fd994306c1515b3999d.tar.gz patchfoo-602514bc8c31a554b1723fd994306c1515b3999d.zip |
Fix error
-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'), |