chore: better not upload in development env

This commit is contained in:
EnixCoda 2019-04-09 20:10:22 +08:00
parent 3c2093d826
commit 7ff738f2c1
No known key found for this signature in database
GPG key ID: 0C1A07377913A1DD

View file

@ -33,7 +33,7 @@ function reportError(error: Error, extra?: any) {
if (!IN_PRODUCTION_MODE) {
console.error(error)
console.error('Extra:\n', extra)
// return
return
}
Sentry.captureException(error)