Commit 9df48c80 authored by Aurel's avatar Aurel

error message is in element 0


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@385 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent de21fdf8
...@@ -276,7 +276,7 @@ class Connection(BaseConnection): ...@@ -276,7 +276,7 @@ class Connection(BaseConnection):
self.write_buf.append(packet.encode()) self.write_buf.append(packet.encode())
except ProtocolError, m: except ProtocolError, m:
logging.critical('trying to send a too big message') logging.critical('trying to send a too big message')
return self.addPacket(packet.internalError(packet.getId(), m[1])) return self.addPacket(packet.internalError(packet.getId(), m[0]))
# If this is the first time, enable polling for writing. # If this is the first time, enable polling for writing.
if len(self.write_buf) == 1: if len(self.write_buf) == 1:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment