diff --git a/iota/commands/extended/promote_transaction.py b/iota/commands/extended/promote_transaction.py index 564d147..51f48e7 100644 --- a/iota/commands/extended/promote_transaction.py +++ b/iota/commands/extended/promote_transaction.py @@ -39,7 +39,7 @@ async def _execute(self, request): if cc_response['state'] is False: raise BadApiResponse( 'Transaction {transaction} is not promotable. ' - 'You should reattach first.'.format(transaction=transaction) + 'Info: {reason}'.format(transaction=transaction, reason=cc_response['info']) ) spam_transfer = ProposedTransaction( diff --git a/test/commands/extended/promote_transaction_test.py b/test/commands/extended/promote_transaction_test.py index b8e9c4e..99a4647 100644 --- a/test/commands/extended/promote_transaction_test.py +++ b/test/commands/extended/promote_transaction_test.py @@ -401,6 +401,7 @@ async def test_not_promotable(self): self.adapter.seed_response('checkConsistency', { 'state': False, + 'info': 'Something went terribly wrong.', }) with self.assertRaises(BadApiResponse):