aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2018-02-17 02:21:06 +0800
committerkumavis <aaron@kumavis.me>2018-02-17 02:21:06 +0800
commit06838774fa0bfb0ddea4db049211f92781841ff5 (patch)
treeefa586081b3dffde17ede21ddc45906e46a14e4d /app
parenta26add6fdfbaa74f1d357e42aa9a260b68d14bed (diff)
downloadtangerine-wallet-browser-06838774fa0bfb0ddea4db049211f92781841ff5.tar
tangerine-wallet-browser-06838774fa0bfb0ddea4db049211f92781841ff5.tar.gz
tangerine-wallet-browser-06838774fa0bfb0ddea4db049211f92781841ff5.tar.bz2
tangerine-wallet-browser-06838774fa0bfb0ddea4db049211f92781841ff5.tar.lz
tangerine-wallet-browser-06838774fa0bfb0ddea4db049211f92781841ff5.tar.xz
tangerine-wallet-browser-06838774fa0bfb0ddea4db049211f92781841ff5.tar.zst
tangerine-wallet-browser-06838774fa0bfb0ddea4db049211f92781841ff5.zip
sentry - report failed tx with more specific message
Diffstat (limited to 'app')
-rw-r--r--app/scripts/background.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/scripts/background.js b/app/scripts/background.js
index 6bf7707e8..3e1178457 100644
--- a/app/scripts/background.js
+++ b/app/scripts/background.js
@@ -85,7 +85,8 @@ function setupController (initState) {
controller.txController.on(`tx:status-update`, (txId, status) => {
if (status !== 'failed') return
const txMeta = controller.txController.txStateManager.getTx(txId)
- raven.captureMessage('Transaction Failed', {
+ const errorMessage = `Transaction Failed: ${txMeta.err.message}`
+ raven.captureMessage(errorMessage, {
// "extra" key is required by Sentry
extra: txMeta,
})