This revision was automatically updated to reflect the committed changes.
Closed by commit rHG4d820b8ad42f: ui: coerce system exception to bytes before 
dropping it in our StdioError (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2245?vs=5669&id=5680

REVISION DETAIL
  https://phab.mercurial-scm.org/D2245

AFFECTED FILES
  mercurial/ui.py

CHANGE DETAILS

diff --git a/mercurial/ui.py b/mercurial/ui.py
--- a/mercurial/ui.py
+++ b/mercurial/ui.py
@@ -958,7 +958,7 @@
                     self.ferr.flush()
         except IOError as inst:
             if inst.errno not in (errno.EPIPE, errno.EIO, errno.EBADF):
-                raise error.StdioError(inst)
+                raise error.StdioError(pycompat.bytestr(inst))
 
     def flush(self):
         # opencode timeblockedsection because this is a critical path



To: durin42, #hg-reviewers, indygreg
Cc: mercurial-devel
_______________________________________________
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel

Reply via email to