diff options
author | frankiebee <frankie.diamond@gmail.com> | 2018-04-30 04:46:07 +0800 |
---|---|---|
committer | frankiebee <frankie.diamond@gmail.com> | 2018-04-30 04:46:07 +0800 |
commit | 873f85d9962ff569baa8a5bbf2c1337c3b920419 (patch) | |
tree | e20e8628e1c64a24bf64597670ee99b7bf23d99a /app/scripts/background.js | |
parent | 4e7b0ff15c5a57cd58497aa292c884a97e8a5d23 (diff) | |
download | tangerine-wallet-browser-873f85d9962ff569baa8a5bbf2c1337c3b920419.tar tangerine-wallet-browser-873f85d9962ff569baa8a5bbf2c1337c3b920419.tar.gz tangerine-wallet-browser-873f85d9962ff569baa8a5bbf2c1337c3b920419.tar.bz2 tangerine-wallet-browser-873f85d9962ff569baa8a5bbf2c1337c3b920419.tar.lz tangerine-wallet-browser-873f85d9962ff569baa8a5bbf2c1337c3b920419.tar.xz tangerine-wallet-browser-873f85d9962ff569baa8a5bbf2c1337c3b920419.tar.zst tangerine-wallet-browser-873f85d9962ff569baa8a5bbf2c1337c3b920419.zip |
guard adainst raven erroring
Diffstat (limited to 'app/scripts/background.js')
-rw-r--r-- | app/scripts/background.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/scripts/background.js b/app/scripts/background.js index 38b871bb5..69d549c85 100644 --- a/app/scripts/background.js +++ b/app/scripts/background.js @@ -261,7 +261,11 @@ function setupController (initState, initLangCode) { controller.txController.on(`tx:status-update`, (txId, status) => { if (status !== 'failed') return const txMeta = controller.txController.txStateManager.getTx(txId) - reportFailedTxToSentry({ raven, txMeta }) + try { + reportFailedTxToSentry({ raven, txMeta }) + } catch (e) { + console.error(e) + } }) // setup state persistence |