1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

sentry - move isBrave decoration to insides of try-catch

This commit is contained in:
kumavis 2018-10-19 04:36:36 -04:00
parent 09c3611171
commit 26b30a031d

View File

@ -24,10 +24,11 @@ function setupRaven (opts) {
const client = Raven.config(ravenTarget, {
release,
transport: function (opts) {
opts.data.extra.isBrave = isBrave
const report = opts.data
try {
// mark browser as brave or not
report.extra.isBrave = isBrave
// handle error-like non-error exceptions
rewriteErrorLikeExceptions(report)
// simplify certain complex error messages (e.g. Ethjs)