diff src/core/xmpp.py @ 934:34dd9287dfe5

plugin account: bug fix profile deletion from the database + unsubscribe the contacts
author souliane <souliane@mailoo.org>
date Mon, 24 Mar 2014 16:21:14 +0100
parents 955e5c781a40
children e1842ebcb2f3
line wrap: on
line diff
--- a/src/core/xmpp.py	Mon Mar 24 10:16:07 2014 +0100
+++ b/src/core/xmpp.py	Mon Mar 24 16:21:14 2014 +0100
@@ -84,7 +84,7 @@
         self.conn_deferred.callback(None)
 
     def initializationFailed(self, reason):
-        print "initializationFailed: %s" % reason
+        error(_("ERROR: XMPP connection failed for profile '%(profile)s': %(reason)s" % {'profile': self.profile, 'reason': reason}))
         self.host_app.bridge.connectionError("AUTH_ERROR", self.profile)
         try:
             client.XMPPClient.initializationFailed(self, reason)