aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/lib/setupRaven.js
diff options
context:
space:
mode:
authorDan Finlay <542863+danfinlay@users.noreply.github.com>2018-06-04 04:09:42 +0800
committerGitHub <noreply@github.com>2018-06-04 04:09:42 +0800
commit750ec8769931f8db30ebb5e8e8bcc61816368800 (patch)
treebdc8c304dcef04bbf76086464251df2178f674f9 /app/scripts/lib/setupRaven.js
parent4be8e780cd64014d07c036c29faa77f947437c4a (diff)
parent0a7584999e6161c68bfc531ec5dd3cb267f33b1e (diff)
downloadtangerine-wallet-browser-750ec8769931f8db30ebb5e8e8bcc61816368800.tar.gz
tangerine-wallet-browser-750ec8769931f8db30ebb5e8e8bcc61816368800.tar.zst
tangerine-wallet-browser-750ec8769931f8db30ebb5e8e8bcc61816368800.zip
Merge pull request #4470 from MetaMask/v4.7.2
Version 4.7.2
Diffstat (limited to 'app/scripts/lib/setupRaven.js')
-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 => {