1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-29 07:16:36 +01:00

sentry - report failed tx with more specific message

This commit is contained in:
kumavis 2018-02-16 10:21:06 -08:00
parent a26add6fdf
commit 06838774fa

View File

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