Minor fixes

This commit is contained in:
calzoneman 2015-11-02 20:52:57 -08:00
parent 6505aa2f5e
commit 5c339656b7
3 changed files with 4 additions and 2 deletions

View file

@ -8,7 +8,7 @@ export default function initialize(app, ioConfig) {
app.get('/r/:channel', (req, res) => {
if (!req.params.channel || !CyTubeUtil.isValidChannelName(req.params.channel)) {
throw new HTTPError(`"${sanitizeText(req.params.channel)}" is not a valid ` +
'channel name.', { status: HTTPStatus.BAD_REQUEST });
'channel name.', { status: HTTPStatus.NOT_FOUND });
}
const endpoints = ioConfig.getSocketEndpoints();