mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 11:35:55 +01:00
more winston, issue #62
This commit is contained in:
@@ -108,7 +108,6 @@ var express = require('express'),
|
||||
|
||||
// respond with html page
|
||||
if (req.accepts('html')) {
|
||||
|
||||
//res.json('404', { url: req.url });
|
||||
res.redirect(global.nconf.get('relative_path') + '/404');
|
||||
return;
|
||||
@@ -116,7 +115,6 @@ var express = require('express'),
|
||||
|
||||
// respond with json
|
||||
if (req.accepts('json')) {
|
||||
console.log('sending 404 json');
|
||||
res.send({ error: 'Not found' });
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user