diff -r 09537caa87f9 -r 40bf3d7ecc42 mercurial/error.py --- a/mercurial/error.py Mon Nov 04 16:04:09 2019 +0100 +++ b/mercurial/error.py Mon Nov 04 16:13:01 2019 +0100 @@ -111,6 +111,9 @@ __bytes__ = _tobytes + def __str__(self): + return pycompat.sysstr(self.__bytes__()) + class HookLoadError(Abort): """raised when loading a hook fails, aborting an operation