show error message raised during sign_transaction. see issue #1422

This commit is contained in:
ThomasV 2015-08-27 08:22:02 +02:00
parent 695aebaa80
commit 578a83fa30
1 changed files with 5 additions and 0 deletions

View File

@ -1023,7 +1023,12 @@ class Abstract_Wallet(object):
# Sign
if keypairs:
tx.sign(keypairs)
# Run hook, and raise if error
tx.error = None
run_hook('sign_transaction', tx, password)
if tx.error:
raise BaseException(tx.error)
def sendtx(self, tx):
# synchronous