aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2018-05-31 08:42:41 +0800
committerkumavis <aaron@kumavis.me>2018-05-31 08:42:41 +0800
commite2e4496c875355c5b73524bf5c721239ad5d3e09 (patch)
tree722598e86ce71f12edcda801024c0498788f79cf
parent39d22a4ddb4ba0f4ad456009c86486a433c6724e (diff)
downloadtangerine-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.js2
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 => {