diff options
author | kumavis <aaron@kumavis.me> | 2017-08-09 12:09:28 +0800 |
---|---|---|
committer | kumavis <aaron@kumavis.me> | 2017-08-09 12:09:28 +0800 |
commit | 25f9746dabb4ecc736a5cdd7b01b2d8a6c8151de (patch) | |
tree | c72727ee7c08fa080e8b764aee3b5ff36753b948 | |
parent | 5e6962342df488073de61314fa4dfae9b7870fb8 (diff) | |
download | tangerine-wallet-browser-25f9746dabb4ecc736a5cdd7b01b2d8a6c8151de.tar.gz tangerine-wallet-browser-25f9746dabb4ecc736a5cdd7b01b2d8a6c8151de.tar.zst tangerine-wallet-browser-25f9746dabb4ecc736a5cdd7b01b2d8a6c8151de.zip |
tx controller - fix error serialization
-rw-r--r-- | app/scripts/controllers/transactions.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/app/scripts/controllers/transactions.js b/app/scripts/controllers/transactions.js index 8b5c6dde2..58c468e22 100644 --- a/app/scripts/controllers/transactions.js +++ b/app/scripts/controllers/transactions.js @@ -382,9 +382,12 @@ module.exports = class TransactionController extends EventEmitter { this._setTxStatus(txId, 'confirmed') } - setTxStatusFailed (txId, reason) { + setTxStatusFailed (txId, err) { const txMeta = this.getTx(txId) - txMeta.err = reason + txMeta.err = { + message: err.toString(), + stack: err.stack, + } this.updateTx(txMeta) this._setTxStatus(txId, 'failed') } |