Skip to content
Snippets Groups Projects
Commit e32e3b85 authored by inso's avatar inso
Browse files

Display error with certification error

parent 68a15619
No related branches found
No related tags found
No related merge requests found
...@@ -61,7 +61,8 @@ class CertificationDialog(QDialog, Ui_CertificationDialog): ...@@ -61,7 +61,8 @@ class CertificationDialog(QDialog, Ui_CertificationDialog):
result = yield from self.account.certify(password, self.community, pubkey) result = yield from self.account.certify(password, self.community, pubkey)
if result[0]: if result[0]:
if self.app.preferences['notifications']: if self.app.preferences['notifications']:
toast.display(self.tr("Certification"), self.tr("Success sending certification")) toast.display(self.tr("Certification"),
self.tr("Success sending certification"))
else: else:
yield from QAsyncMessageBox.information(self, self.tr("Certification"), yield from QAsyncMessageBox.information(self, self.tr("Certification"),
self.tr("Success sending certification")) self.tr("Success sending certification"))
...@@ -69,10 +70,12 @@ class CertificationDialog(QDialog, Ui_CertificationDialog): ...@@ -69,10 +70,12 @@ class CertificationDialog(QDialog, Ui_CertificationDialog):
super().accept() super().accept()
else: else:
if self.app.preferences['notifications']: if self.app.preferences['notifications']:
toast.display(self.tr("Certification"), self.tr("Could not broadcast certification")) toast.display(self.tr("Certification"), self.tr("Could not broadcast certification : {0}"
.format(result[1])))
else: else:
yield from QAsyncMessageBox.critical(self, self.tr("Certification"), yield from QAsyncMessageBox.critical(self, self.tr("Certification"),
self.tr("Could not broadcast certification")) self.tr("Could not broadcast certification : {0}"
.format(result[1])))
QApplication.restoreOverrideCursor() QApplication.restoreOverrideCursor()
def change_current_community(self, index): def change_current_community(self, index):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment