D2245: ui: coerce system exception to bytes before dropping it in our StdioError
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Wed Feb 14 00:09:34 EST 2018
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
More information about the Mercurial-devel
mailing list