aboutsummaryrefslogtreecommitdiffstats
path: root/index.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2023-12-20 22:17:58 +0000
committerAdam Soltys <[email protected]>2023-12-20 22:18:03 +0000
commit47d94c90b360a6025df0c348a465b98e7b401541 (patch)
treeddca916910fd14b0827a89cc2e81cac31c0e58e2 /index.js
parent48fd5545bfa4417e09923e2437316466608a4c24 (diff)
downloadcoinos-server-47d94c90b360a6025df0c348a465b98e7b401541.tar.gz
coinos-server-47d94c90b360a6025df0c348a465b98e7b401541.zip
logging
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 a6881cc5..798f4e77 100644
--- a/index.js
+++ b/index.js
@@ -111,3 +111,4 @@ let port = process.env.PORT || 3119;
app.listen({ host, port });
process.on("unhandledRejection", () => err("Unhandled error"));
+process.on("uncaughtException", (e) => err(e.message));