aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2018-05-24 13:33:02 +0800
committerkumavis <aaron@kumavis.me>2018-05-24 13:33:02 +0800
commitf41198fbb6f4e72e331bb4e3d326534f90000ce9 (patch)
tree11599d6379b5e1dd4af9dd25e46c9552951e1ebd /app/scripts
parent22e59af741a43ab9a9dc8e96415788f681a8efda (diff)
downloadtangerine-wallet-browser-f41198fbb6f4e72e331bb4e3d326534f90000ce9.tar
tangerine-wallet-browser-f41198fbb6f4e72e331bb4e3d326534f90000ce9.tar.gz
tangerine-wallet-browser-f41198fbb6f4e72e331bb4e3d326534f90000ce9.tar.bz2
tangerine-wallet-browser-f41198fbb6f4e72e331bb4e3d326534f90000ce9.tar.lz
tangerine-wallet-browser-f41198fbb6f4e72e331bb4e3d326534f90000ce9.tar.xz
tangerine-wallet-browser-f41198fbb6f4e72e331bb4e3d326534f90000ce9.tar.zst
tangerine-wallet-browser-f41198fbb6f4e72e331bb4e3d326534f90000ce9.zip
sentry - setupRaven - ensure message is truthy
Diffstat (limited to 'app/scripts')
-rw-r--r--app/scripts/lib/setupRaven.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/scripts/lib/setupRaven.js b/app/scripts/lib/setupRaven.js
index d164827ab..30d0a3680 100644
--- a/app/scripts/lib/setupRaven.js
+++ b/app/scripts/lib/setupRaven.js
@@ -66,11 +66,11 @@ function simplifyErrorMessages(report) {
function rewriteErrorMessages(report, rewriteFn) {
// rewrite top level message
- report.message = rewriteFn(report.message)
+ if (typeof report.message === 'string') report.message = rewriteFn(report.message)
// rewrite each exception message
if (report.exception && report.exception.values) {
report.exception.values.forEach(item => {
- item.value = rewriteFn(item.value)
+ if (typeof item.value === 'string') item.value = rewriteFn(item.value)
})
}
}