viff

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 diff
     1.1 --- a/viff/runtime.py	Tue Apr 21 15:19:57 2009 +0200
     1.2 +++ b/viff/runtime.py	Tue Apr 21 15:52:17 2009 +0200
     1.3 @@ -321,7 +321,7 @@
     1.4                  else:
     1.5                      deq.append(data)
     1.6              except struct.error, e:
     1.7 -                print "*** bad data: %s" % e
     1.8 +                print "*** bad data from Player %d: %s" % (self.peer_id, e)
     1.9  
    1.10      def sendData(self, program_counter, data_type, data):
    1.11          """Send data to the peer.