Browse Source

Catch errors also in internals

master
meriadec 7 years ago
parent
commit
f6f99c12a2
No known key found for this signature in database GPG Key ID: 1D2FC2305E2CB399
  1. 6
      src/internals/index.js

6
src/internals/index.js

@ -8,6 +8,12 @@ function sendEvent(type: string, data: any, options: Object = { kill: true }) {
process.send({ type, data, options })
}
if (__PROD__ && __SENTRY_URL__) {
const Raven = require('raven') // eslint-disable-line global-require
const ravenConfig = { captureUnhandledRejections: true }
Raven.config(__SENTRY_URL__, ravenConfig).install()
}
// $FlowFixMe
const func = require(`./${process.env.FORK_TYPE}`) // eslint-disable-line import/no-dynamic-require

Loading…
Cancel
Save