itizawa 5 лет назад
Родитель
Сommit
176f165b7d
1 измененных файлов с 0 добавлено и 4 удалено
  1. 0 4
      src/server/routes/index.js

+ 0 - 4
src/server/routes/index.js

@@ -182,8 +182,4 @@ module.exports = function(crowi, app) {
   app.get('/*/$'                   , loginRequired , page.showPageWithEndOfSlash, page.notFound);
   app.get('/*/$'                   , loginRequired , page.showPageWithEndOfSlash, page.notFound);
   app.get('/*'                     , loginRequired , page.showPage, page.notFound);
   app.get('/*'                     , loginRequired , page.showPage, page.notFound);
 
 
-  app.use((err, req, res, next) => {
-    console.log('エラー発生');
-    res.status(500).send('Something Wrong').end();
-  });
 };
 };