##// END OF EJS Templates
verify: convert an exception to bytes before logging...
Matt Harbison -
r47523:ed0899e0 stable
parent child Browse files
Show More
@@ -14,6 +14,9 b' from .node import ('
14 14 nullid,
15 15 short,
16 16 )
17 from .utils import (
18 stringutil,
19 )
17 20
18 21 from . import (
19 22 error,
@@ -81,7 +84,7 b' class verifier(object):'
81 84
82 85 def _exc(self, linkrev, msg, inst, filename=None):
83 86 """record exception raised during the verify process"""
84 fmsg = pycompat.bytestr(inst)
87 fmsg = stringutil.forcebytestr(inst)
85 88 if not fmsg:
86 89 fmsg = pycompat.byterepr(inst)
87 90 self._err(linkrev, b"%s: %s" % (msg, fmsg), filename)
General Comments 0
You need to be logged in to leave comments. Login now