diff options
author | kumavis <kumavis@users.noreply.github.com> | 2018-06-04 01:50:05 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-04 01:50:05 +0800 |
commit | a08e58f0fdc3f2377cd35b8557828161bff3f7b7 (patch) | |
tree | f93085ab928ed3ea17ceba3dcaea17c25d7080d0 | |
parent | 72dde75e58b2aaec22e41b2fe742bee7e9c35777 (diff) | |
parent | e2e4496c875355c5b73524bf5c721239ad5d3e09 (diff) | |
download | tangerine-wallet-browser-a08e58f0fdc3f2377cd35b8557828161bff3f7b7.tar tangerine-wallet-browser-a08e58f0fdc3f2377cd35b8557828161bff3f7b7.tar.gz tangerine-wallet-browser-a08e58f0fdc3f2377cd35b8557828161bff3f7b7.tar.bz2 tangerine-wallet-browser-a08e58f0fdc3f2377cd35b8557828161bff3f7b7.tar.lz tangerine-wallet-browser-a08e58f0fdc3f2377cd35b8557828161bff3f7b7.tar.xz tangerine-wallet-browser-a08e58f0fdc3f2377cd35b8557828161bff3f7b7.tar.zst tangerine-wallet-browser-a08e58f0fdc3f2377cd35b8557828161bff3f7b7.zip |
Merge pull request #4426 from MetaMask/sentry-url-rewrite-fix
sentry - message rewrite - guard against missing message
-rw-r--r-- | app/scripts/lib/setupRaven.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/scripts/lib/setupRaven.js b/app/scripts/lib/setupRaven.js index d164827ab..77aefb00a 100644 --- a/app/scripts/lib/setupRaven.js +++ b/app/scripts/lib/setupRaven.js @@ -66,7 +66,7 @@ function simplifyErrorMessages(report) { function rewriteErrorMessages(report, rewriteFn) { // rewrite top level message - report.message = rewriteFn(report.message) + if (report.message) report.message = rewriteFn(report.message) // rewrite each exception message if (report.exception && report.exception.values) { report.exception.values.forEach(item => { |