mercurial/error.py
branchstable
changeset 43418 ca3dca416f8d
parent 43417 822202e72f69
child 43506 9f70512ae2cf
--- a/mercurial/error.py	Tue Nov 05 21:29:40 2019 +0900
+++ b/mercurial/error.py	Tue Nov 05 21:35:19 2019 +0900
@@ -114,6 +114,9 @@
     if pycompat.ispy3:
 
         def __str__(self):
+            # the output would be unreadable if the message was translated,
+            # but do not replace it with encoding.strfromlocal(), which
+            # may raise another exception.
             return pycompat.sysstr(self.__bytes__())