diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/index.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/index.ts b/src/index.ts index fe6ea90..642e9b3 100644 --- a/src/index.ts +++ b/src/index.ts @@ -162,6 +162,9 @@ app.post('/accounts/update', async(req, res) => { } }) +process.on('uncaughtException', err => console.error(err)) +process.on('unhandledRejection', (err, promise) => console.error(promise, err)) + // only run the server if it's not doing tests if (!globalThis.isTest) app.listen(8080, () => console.log('App started :)')) |