1
0

gui: prepend broadcast_transaction errors with explanatory message

This commit is contained in:
SomberNight
2018-12-21 20:44:38 +01:00
parent b491a30dd9
commit 5248613e9d
5 changed files with 17 additions and 6 deletions

View File

@@ -206,7 +206,9 @@ class ElectrumGui:
try:
self.network.run_from_another_thread(self.network.broadcast_transaction(tx))
except Exception as e:
print(repr(e))
display_msg = _('The server returned an error when broadcasting the transaction.')
display_msg += '\n' + repr(e)
print(display_msg)
else:
print(_('Payment sent.'))
#self.do_clear()