sentry - message rewrite - guard against missing message

feature/default_network_editable
kumavis 7 years ago
parent 39d22a4ddb
commit e2e4496c87
  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