[Neo-report] r2127 gregory - /trunk/neo/client/handlers/__init__.py

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Jun 4 10:39:44 CEST 2010


Author: gregory
Date: Fri Jun  4 10:39:43 2010
New Revision: 2127

Log:
Include more informations in exception message.

Modified:
    trunk/neo/client/handlers/__init__.py

Modified: trunk/neo/client/handlers/__init__.py
==============================================================================
--- trunk/neo/client/handlers/__init__.py [iso-8859-1] (original)
+++ trunk/neo/client/handlers/__init__.py [iso-8859-1] Fri Jun  4 10:39:43 2010
@@ -39,7 +39,8 @@
         """Redirect all received packet to dispatcher thread."""
         if packet.isResponse():
             if not self.dispatcher.dispatch(conn, packet.getId(), (conn, packet)):
-                raise ProtocolError('Unexpected response packet')
+                raise ProtocolError('Unexpected response packet from %r: %r',
+                        conn, packet)
         else:
             self.dispatch(conn, packet)
 





More information about the Neo-report mailing list