aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/serve.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/serve.js b/lib/serve.js
index 1c36c44..cb100ac 100644
--- a/lib/serve.js
+++ b/lib/serve.js
@@ -189,7 +189,7 @@ Serve.prototype.respondSink = function (status, headers, cb) {
var self = this
if (status && headers) self.res.writeHead(status, headers)
return toPull(self.res, cb || function (err) {
- if (err) self.error(err)
+ if (err) self.app.error(err)
})
}
@@ -386,8 +386,9 @@ Serve.prototype.channel = function (channel) {
}
if (!this.app.sbot.query) return pull(
- pull.once(u.renderError(new Error('Missing ssb-query plugin').outerHTML)),
- self.respondSink(400, {'Content-Type': ctype('html')})
+ pull.once(u.renderError(new Error('Missing ssb-query plugin')).outerHTML),
+ this.wrapPage('#' + channel),
+ this.respondSink(400, {'Content-Type': ctype('html')})
)
pull(