Mercurial > libervia-backend
diff frontends/src/wix/main_window.py @ 1063:6ec513ad92c2
frontends: async failures are more detailed (full class name + error message)
author | souliane <souliane@mailoo.org> |
---|---|
date | Sat, 07 Jun 2014 15:39:20 +0200 |
parents | aa15453ec54d |
children | 11e2bb20e896 |
line wrap: on
line diff
--- a/frontends/src/wix/main_window.py Sat Jun 07 15:20:39 2014 +0200 +++ b/frontends/src/wix/main_window.py Sat Jun 07 15:39:20 2014 +0200 @@ -256,8 +256,8 @@ 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 @@ 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()