This is an archive of the discontinued Mercurial Phabricator instance.

ui: coerce system exception to bytes before dropping it in our StdioError
ClosedPublic

Authored by durin42 on Feb 13 2018, 7:13 PM.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

durin42 created this revision.Feb 13 2018, 7:13 PM
indygreg accepted this revision.Feb 14 2018, 12:06 AM
This revision is now accepted and ready to land.Feb 14 2018, 12:06 AM
This revision was automatically updated to reflect the committed changes.
yuja added a subscriber: yuja.Feb 14 2018, 6:29 AM

This breaks test-basic.t and is wrong because StdioError is an IOError,
which takes a system string.

@@ -36,10 +36,10 @@

 #if devfull
   $ hg status >/dev/full 2>&1
-  [255]
+  [1]

   $ hg status ENOENT 2>/dev/full
-  [255]
+  [1]
 #endif

I'll drop this from hg-committed.