Stop reporting failed transactions to Sentry (#8795)
These error reports are not useful.feature/default_network_editable
parent
37da64aa7e
commit
1fb15a52bb
@ -1,14 +0,0 @@ |
|||||||
import extractEthjsErrorMessage from './extractEthjsErrorMessage' |
|
||||||
|
|
||||||
//
|
|
||||||
// utility for formatting failed transaction messages
|
|
||||||
// for sending to sentry
|
|
||||||
//
|
|
||||||
|
|
||||||
export default function reportFailedTxToSentry ({ sentry, txMeta }) { |
|
||||||
const errorMessage = 'Transaction Failed: ' + extractEthjsErrorMessage(txMeta.err.message) |
|
||||||
sentry.captureMessage(errorMessage, { |
|
||||||
// "extra" key is required by Sentry
|
|
||||||
extra: { txMeta }, |
|
||||||
}) |
|
||||||
} |
|
Loading…
Reference in new issue