frontends: async failures are more detailed (full class name + error message)

This commit is contained in:
souliane 2014-06-07 15:39:20 +02:00
commit a5dd35ce65

View file

@ -256,8 +256,8 @@ class MainWindow(wx.Frame, QuickApp):
dlg.ShowModal()
dlg.Destroy()
def action_eb(failure):
dlg = wx.MessageDialog(self, unicode(failure),
_('Error'),
dlg = wx.MessageDialog(self, failure.message,
failure.fullname,
wx.OK | wx.ICON_ERROR
)
dlg.ShowModal()
@ -411,8 +411,8 @@ class MainWindow(wx.Frame, QuickApp):
XMLUI(self, xml_data=params, title=_("Configuration"))
def failure(error):
dlg = wx.MessageDialog(self, unicode(error),
_('Error'),
dlg = wx.MessageDialog(self, error.message,
error.fullname,
wx.OK | wx.ICON_ERROR
)
dlg.ShowModal()