Show More
@@ -14,6 +14,9 b' from .node import (' | |||||
14 | nullid, |
|
14 | nullid, | |
15 | short, |
|
15 | short, | |
16 | ) |
|
16 | ) | |
|
17 | from .utils import ( | |||
|
18 | stringutil, | |||
|
19 | ) | |||
17 |
|
20 | |||
18 | from . import ( |
|
21 | from . import ( | |
19 | error, |
|
22 | error, | |
@@ -81,7 +84,7 b' class verifier(object):' | |||||
81 |
|
84 | |||
82 | def _exc(self, linkrev, msg, inst, filename=None): |
|
85 | def _exc(self, linkrev, msg, inst, filename=None): | |
83 | """record exception raised during the verify process""" |
|
86 | """record exception raised during the verify process""" | |
84 |
fmsg = |
|
87 | fmsg = stringutil.forcebytestr(inst) | |
85 | if not fmsg: |
|
88 | if not fmsg: | |
86 | fmsg = pycompat.byterepr(inst) |
|
89 | fmsg = pycompat.byterepr(inst) | |
87 | self._err(linkrev, b"%s: %s" % (msg, fmsg), filename) |
|
90 | self._err(linkrev, b"%s: %s" % (msg, fmsg), filename) |
General Comments 0
You need to be logged in to leave comments.
Login now