sentry - report failed tx with more specific message

feature/default_network_editable
kumavis 7 years ago
parent a26add6fdf
commit 06838774fa
  1. 3
      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,
})

Loading…
Cancel
Save