We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 222092b commit 58999e2Copy full SHA for 58999e2
packages/overmind-website/backend/index.js
@@ -232,3 +232,9 @@ if (IS_PRODUCTION) {
232
app.get('/*', (_, res) => res.send(indexHtml))
233
234
app.listen(process.env.PORT || 5000, () => console.log('Server started!'))
235
+
236
+process.on('uncaughtException', (err) => {
237
+ console.log('WEIRD ERROR', err.message)
238
+ console.log(err.stack)
239
+ process.exit(1)
240
+})
0 commit comments