aboutsummaryrefslogtreecommitdiffstats
path: root/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'index.js')
-rw-r--r--index.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/index.js b/index.js
index 55d05100..5b8a3afb 100644
--- a/index.js
+++ b/index.js
@@ -107,3 +107,4 @@ let port = process.env.PORT || 3119;
app.listen({ host, port });
process.on("unhandledRejection", () => err("Unhandled error"));
+process.on("uncaughtException", (e) => err(e.message));