Merge pull request #4426 from MetaMask/sentry-url-rewrite-fix

sentry - message rewrite - guard against missing message
feature/default_network_editable
kumavis 7 years ago committed by GitHub
commit a08e58f0fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      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 => {

Loading…
Cancel
Save