frontends: async failures are more detailed (full class name + error message)
This commit is contained in:
parent
b9106c65d6
commit
a5dd35ce65
1 changed files with 18 additions and 20 deletions
|
|
@ -83,14 +83,12 @@ class ProfileManager(urwid.WidgetWrap):
|
|||
|
||||
def _profileCreationFailure(self, reason):
|
||||
self.host.removePopUp()
|
||||
if reason=="ConflictError":
|
||||
message=_("A profile with this name already exists")
|
||||
elif reason=="CancelError":
|
||||
message=_("Profile creation cancelled by backend")
|
||||
elif reason=="DATABASE": # FIXME: doesn't seem to exist !
|
||||
message=_("Database error")
|
||||
if reason == "ConflictError":
|
||||
message = _("A profile with this name already exists")
|
||||
elif reason == "CancelError":
|
||||
message = _("Profile creation cancelled by backend")
|
||||
else:
|
||||
message=_("Unknown reason (%s)") % reason
|
||||
message = _("Unknown reason (%s)") % reason
|
||||
popup = Alert(_("Can't create profile"), message, ok_cb=self.host.removePopUp)
|
||||
self.host.showPopUp(popup)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue