Ivan Greenking 1 year ago
parent
commit
faf1089687
1 changed files with 4 additions and 0 deletions
  1. 4 0
      index.js

+ 4 - 0
index.js

@@ -185,3 +185,7 @@ const upload  = require('multer')({ dest: uploadPath })
     });
 })()
 
+process.on('uncaughtException', (error) => {
+	console.log('UNCAUGHT EXCEPTION', error)
+})
+