Skip to content

Commit 58999e2

Browse files
feat(website): get more details on crashing website
1 parent 222092b commit 58999e2

File tree

1 file changed

+6
-0
lines changed
  • packages/overmind-website/backend

1 file changed

+6
-0
lines changed

packages/overmind-website/backend/index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,3 +232,9 @@ if (IS_PRODUCTION) {
232232
app.get('/*', (_, res) => res.send(indexHtml))
233233

234234
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

Comments
 (0)