mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-26 20:39:08 +01:00
sentry - message rewrite - guard against missing message
This commit is contained in:
parent
39d22a4ddb
commit
e2e4496c87
@ -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…
Reference in New Issue
Block a user