diff frontends/src/primitivus/chat.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 0a9986452bba
children 11e2bb20e896
line wrap: on
line diff
--- a/frontends/src/primitivus/chat.py	Sat Jun 07 15:20:39 2014 +0200
+++ b/frontends/src/primitivus/chat.py	Sat Jun 07 15:39:20 2014 +0200
@@ -354,7 +354,7 @@
         def gotUI(xmlui):
             self.host.addWindow(XMLUI(self.host, xmlui))
         def configureError(failure):
-            self.host.showPopUp(sat_widgets.Alert(_("Error"), unicode(failure), ok_cb=self.host.removePopUp))
+            self.host.showPopUp(sat_widgets.Alert(failure.fullname, failure.message, ok_cb=self.host.removePopUp))
         self.host.bridge.configureRoom(self.id, self.host.profile, callback=gotUI, errback=configureError)
 
     def onSendFileRequest(self, menu):