show error message raised during sign_transaction. see issue #1422
This commit is contained in:
parent
695aebaa80
commit
578a83fa30
|
@ -1023,7 +1023,12 @@ class Abstract_Wallet(object):
|
||||||
# Sign
|
# Sign
|
||||||
if keypairs:
|
if keypairs:
|
||||||
tx.sign(keypairs)
|
tx.sign(keypairs)
|
||||||
|
# Run hook, and raise if error
|
||||||
|
tx.error = None
|
||||||
run_hook('sign_transaction', tx, password)
|
run_hook('sign_transaction', tx, password)
|
||||||
|
if tx.error:
|
||||||
|
raise BaseException(tx.error)
|
||||||
|
|
||||||
|
|
||||||
def sendtx(self, tx):
|
def sendtx(self, tx):
|
||||||
# synchronous
|
# synchronous
|
||||||
|
|
Loading…
Reference in New Issue