aboutsummaryrefslogtreecommitdiffstats
path: root/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'index.js')
-rw-r--r--index.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/index.js b/index.js
index 29321caa..ef30244d 100644
--- a/index.js
+++ b/index.js
@@ -104,3 +104,7 @@ server.listen(config.port, () =>
);
process.on("SIGINT", process.exit);
+
+process.on('uncaughtException', function (exception) {
+ console.log(exception);
+});