Browse Source

fixed error msg construction

Darren Ranalli 22 năm trước cách đây
mục cha
commit
babe3283bd
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      direct/src/distributed/ClientRepository.py

+ 1 - 1
direct/src/distributed/ClientRepository.py

@@ -82,7 +82,7 @@ class ClientRepository(DirectObject.DirectObject):
         self.dcFile = DCFile()
         readResult = self.dcFile.read(dcFileName)
         if not readResult:
-            self.notify.error("Could not read dcfile: " + dcFileName)
+            self.notify.error("Could not read dcfile: %s" % dcFileName.cStr())
         self.hashVal = self.dcFile.getHash()
         return self.parseDcClasses(self.dcFile)