diff options
author | kumavis <aaron@kumavis.me> | 2018-05-31 08:42:41 +0800 |
---|---|---|
committer | kumavis <aaron@kumavis.me> | 2018-05-31 08:42:41 +0800 |
commit | e2e4496c875355c5b73524bf5c721239ad5d3e09 (patch) | |
tree | 722598e86ce71f12edcda801024c0498788f79cf | |
parent | 39d22a4ddb4ba0f4ad456009c86486a433c6724e (diff) | |
download | tangerine-wallet-browser-e2e4496c875355c5b73524bf5c721239ad5d3e09.tar.gz tangerine-wallet-browser-e2e4496c875355c5b73524bf5c721239ad5d3e09.tar.zst tangerine-wallet-browser-e2e4496c875355c5b73524bf5c721239ad5d3e09.zip |
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 => { |