1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

error message fix

This commit is contained in:
Anton 2018-05-28 18:08:33 +02:00
parent 62dc6e20eb
commit 1d23a5c81b

View File

@ -128,7 +128,6 @@ class TransactionController extends EventEmitter {
@param opts {object} - with the key origin to put the origin on the txMeta @param opts {object} - with the key origin to put the origin on the txMeta
*/ */
async newUnapprovedTransaction (txParams, opts = {}) { async newUnapprovedTransaction (txParams, opts = {}) {
log.debug(`MetaMaskController newUnapprovedTransaction ${JSON.stringify(txParams)}`) log.debug(`MetaMaskController newUnapprovedTransaction ${JSON.stringify(txParams)}`)
const initialTxMeta = await this.addUnapprovedTransaction(txParams) const initialTxMeta = await this.addUnapprovedTransaction(txParams)
@ -145,7 +144,7 @@ class TransactionController extends EventEmitter {
case 'failed': case 'failed':
return reject(this.cleanErrorStack(new Error(finishedTxMeta.err.message))) return reject(this.cleanErrorStack(new Error(finishedTxMeta.err.message)))
default: default:
return reject(this.cleanErrorStack(`MetaMask Tx Signature: Unknown problem: ${JSON.stringify(finishedTxMeta.txParams)}`)) return reject(this.cleanErrorStack(new Error(`MetaMask Tx Signature: Unknown problem: ${JSON.stringify(finishedTxMeta.txParams)}`)))
} }
}) })
}) })