Added a funny 404 page

This commit is contained in:
Kasper Rynning-Tønnesen
2017-11-14 12:24:09 +01:00
parent 7b0d3c3232
commit 1adff62a45
3 changed files with 14 additions and 7 deletions

View File

@@ -129,6 +129,10 @@ app.use('/', router);
app.use('/assets', express.static(publicPath + '/assets'));
app.use(function (req, res, next) {
res.status(404).redirect("/404");
})
db.on('error',function(err) {
console.log("\n" + new Date().toString() + "\n Database error: ", err);
});