mercurial/scmutil.py
branchstable
changeset 43365 899e55e2d375
parent 43147 54e943b28101
child 43468 b4c82b704180
child 43554 9f70512ae2cf
--- a/mercurial/scmutil.py	Fri Nov 01 17:38:07 2019 +0100
+++ b/mercurial/scmutil.py	Fri Nov 01 17:35:36 2019 +0100
@@ -1854,7 +1854,7 @@
                 raise error.CorruptedState(e % self.firstlinekey)
             d.update(updatedict)
         except ValueError as e:
-            raise error.CorruptedState(str(e))
+            raise error.CorruptedState(stringutil.forcebytestr(e))
         return d
 
     def write(self, data, firstline=None):