+ 对不起,您的风筝已掉线,请时光倒流回前一秒。
+ 返回首页
+
diff --git a/app.js b/app.js index c67495d..88d3f37 100644 --- a/app.js +++ b/app.js @@ -69,10 +69,11 @@ if (app.get('env') === 'development') { // no stacktraces leaked to user app.use(function(err, req, res, next) { res.status(err.status || 500); - res.render('error', { - message: err.message, - error: {} - }); + res.sendfile("./public/404.html"); + // res.render('error', { + // message: err.message, + // error: {} + // }); }); api.checkSnapFaviconState(); api.getSnapByTimer(); diff --git a/public/404.html b/public/404.html new file mode 100644 index 0000000..4526e73 --- /dev/null +++ b/public/404.html @@ -0,0 +1,58 @@ + + +
+ +
+ 对不起,您的风筝已掉线,请时光倒流回前一秒。
+ 返回首页
+