Skip to content

Commit fa2f61d

Browse files
committed
error boundaries
1 parent 6f6053a commit fa2f61d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,7 @@ receiver.app.post('/invites', async (req, res) => {
7979
const server = await app.start(process.env.PORT || 3000);
8080
console.log('⚡️ CC app is running!', server.address());
8181
})();
82+
83+
process.on('uncaughtException', function (err) {
84+
console.log(err);
85+
});

0 commit comments

Comments
 (0)