Browse Source

Merge pull request #80 from meriadec/master

Catch errors also in internals
master
Meriadec Pillet 7 years ago
committed by GitHub
parent
commit
1ebb658bf3
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  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