##// END OF EJS Templates
py3: use util.forcebytestr to convert error messages to bytes...
Pulkit Goyal -
r36414:743b293c default
parent child Browse files
Show More
@@ -255,7 +255,8 b' class branchcache(dict):'
255 255 repo.filtername, len(self), nodecount)
256 256 except (IOError, OSError, error.Abort) as inst:
257 257 # Abort may be raised by read only opener, so log and continue
258 repo.ui.debug("couldn't write branch cache: %s\n" % inst)
258 repo.ui.debug("couldn't write branch cache: %s\n" %
259 util.forcebytestr(inst))
259 260
260 261 def update(self, repo, revgen):
261 262 """Given a branchhead cache, self, that may have extra nodes or be
@@ -783,6 +783,6 b' class hgtagsfnodescache(object):'
783 783 except (IOError, OSError) as inst:
784 784 repo.ui.log('tagscache',
785 785 "couldn't write cache/%s: %s\n" % (
786 _fnodescachefile, inst))
786 _fnodescachefile, util.forcebytestr(inst)))
787 787 finally:
788 788 lock.release()
General Comments 0
You need to be logged in to leave comments. Login now