diff mercurial/tags.py @ 36426:743b293c3ca0

py3: use util.forcebytestr to convert error messages to bytes Differential Revision: https://phab.mercurial-scm.org/D2421
author Pulkit Goyal <7895pulkit@gmail.com>
date Sat, 24 Feb 2018 16:20:15 +0530
parents 18106c3bc94a
children a24c57f1f5c3
line wrap: on
line diff
--- a/mercurial/tags.py	Sat Feb 24 16:15:16 2018 +0530
+++ b/mercurial/tags.py	Sat Feb 24 16:20:15 2018 +0530
@@ -783,6 +783,6 @@
         except (IOError, OSError) as inst:
             repo.ui.log('tagscache',
                         "couldn't write cache/%s: %s\n" % (
-                        _fnodescachefile, inst))
+                        _fnodescachefile, util.forcebytestr(inst)))
         finally:
             lock.release()