cosigner pool: show exception text if failing to send to server
This commit is contained in:
@@ -179,7 +179,7 @@ class Plugin(BasePlugin):
|
||||
server.put(_hash, message)
|
||||
except Exception as e:
|
||||
traceback.print_exc(file=sys.stdout)
|
||||
window.show_message(_("Failed to send transaction to cosigning pool."))
|
||||
window.show_error(_("Failed to send transaction to cosigning pool") + ':\n' + str(e))
|
||||
return
|
||||
window.show_message(_("Your transaction was sent to the cosigning pool.") + '\n' +
|
||||
_("Open your cosigner wallet to retrieve it."))
|
||||
@@ -219,7 +219,7 @@ class Plugin(BasePlugin):
|
||||
message = bh2u(EC.decrypt_message(message))
|
||||
except Exception as e:
|
||||
traceback.print_exc(file=sys.stdout)
|
||||
window.show_message(str(e))
|
||||
window.show_error(_('Error decrypting message') + ':\n' + str(e))
|
||||
return
|
||||
|
||||
self.listener.clear(keyhash)
|
||||
|
||||
Reference in New Issue
Block a user