Using Meteor with sentry.io

I am trying to use sentry.io with Meteor. However Meteor seems to swallow all the errors so even if an exception is thrown manually it won’t get picked up by this code.

process.on('uncaughtException', (err) => {
  console.log('exception')
  console.log(err)
});

Is there any way I can add a global error handler to Meteor instead of it’s own internal one so I can link it up to custom error handling code?

2 Likes