X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=server%2Fapp.js;h=eced7d331972e86f8b3d49b1a1a04cdcf3120112;hb=a97bdbda4ecf83645d409b717e36828784d1450d;hp=b8a6aec7400896cba8c67522ee8688bc2a1d3454;hpb=866842c3c310524c034922870234120ed2a16cbf;p=vchess.git diff --git a/server/app.js b/server/app.js index b8a6aec7..eced7d33 100644 --- a/server/app.js +++ b/server/app.js @@ -55,10 +55,11 @@ app.use(function(req, res, next) { // error handler app.use(function(err, req, res, next) { res.status(err.status || 500); + if (app.get('env') === 'development') + console.log(err.stack); res.send( "

" + err.message + "

" + - "

" + err.status + "

" + - "
" + err.stack + "
" + "

" + err.status + "

" ); });