X-Git-Url: https://git.auder.net/pieces/Checkered/cn.svg?a=blobdiff_plain;f=server%2Fapp.js;h=b8a6aec7400896cba8c67522ee8688bc2a1d3454;hb=866842c3c310524c034922870234120ed2a16cbf;hp=4f9d167d705e162827dc5d8fd32dd95b36ee0bcc;hpb=8477e53d8e78606e4c4e4bf91c77b1011aab583c;p=vchess.git diff --git a/server/app.js b/server/app.js index 4f9d167d..b8a6aec7 100644 --- a/server/app.js +++ b/server/app.js @@ -54,17 +54,12 @@ app.use(function(req, res, next) { // error handler app.use(function(err, req, res, next) { - // set locals, only providing error in development - res.locals.message = err.message; - res.locals.error = (req.app.get('env') === 'development' ? err : {}); - // render the error page res.status(err.status || 500); - res.send(` - -
#{error.stack}- `); + res.send( + "
" + err.stack + "" + ); }); module.exports = app;