mercurial/localrepo.py
changeset 36422 04c319a07c7b
parent 36400 7b86aa31b004
child 36471 c28b6d609c47
--- a/mercurial/localrepo.py	Sun Feb 25 22:30:14 2018 -0500
+++ b/mercurial/localrepo.py	Sun Feb 25 23:08:41 2018 -0500
@@ -259,7 +259,8 @@
                     bundle2.processbundle(self._repo, b)
                 raise
         except error.PushRaced as exc:
-            raise error.ResponseError(_('push failed:'), str(exc))
+            raise error.ResponseError(_('push failed:'),
+                                      util.forcebytestr(exc))
 
     # End of _basewirecommands interface.