mercurial/error.py
branchstable
changeset 43418 ca3dca416f8d
parent 43417 822202e72f69
child 43506 9f70512ae2cf
equal deleted inserted replaced
43417:822202e72f69 43418:ca3dca416f8d
   112     __bytes__ = _tobytes
   112     __bytes__ = _tobytes
   113 
   113 
   114     if pycompat.ispy3:
   114     if pycompat.ispy3:
   115 
   115 
   116         def __str__(self):
   116         def __str__(self):
       
   117             # the output would be unreadable if the message was translated,
       
   118             # but do not replace it with encoding.strfromlocal(), which
       
   119             # may raise another exception.
   117             return pycompat.sysstr(self.__bytes__())
   120             return pycompat.sysstr(self.__bytes__())
   118 
   121 
   119 
   122 
   120 class HookLoadError(Abort):
   123 class HookLoadError(Abort):
   121     """raised when loading a hook fails, aborting an operation
   124     """raised when loading a hook fails, aborting an operation