Merge pull request #3281 from MetaMask/sentry-failed-tx-debatch

sentry - report failed tx with more specific message
feature/default_network_editable
Dan Finlay 7 years ago committed by GitHub
commit fe21f8a952
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      app/scripts/background.js

@ -86,7 +86,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,
})

Loading…
Cancel
Save