changeset 1170:98eb6e0cfa88

Include name of bad player in warning.
author Martin Geisler <mg@cs.au.dk>
date Tue, 21 Apr 2009 15:52:17 +0200
parents 05bcb213270c
children 0e3d8a3d3b15
files viff/runtime.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/viff/runtime.py	Tue Apr 21 15:19:57 2009 +0200
+++ b/viff/runtime.py	Tue Apr 21 15:52:17 2009 +0200
@@ -321,7 +321,7 @@
                 else:
                     deq.append(data)
             except struct.error, e:
-                print "*** bad data: %s" % e
+                print "*** bad data from Player %d: %s" % (self.peer_id, e)
 
     def sendData(self, program_counter, data_type, data):
         """Send data to the peer.