Submitter | Pulkit Goyal |
---|---|
Date | June 2, 2017, 8:46 a.m. |
Message ID | <a2c4837cd74f9ff787e4.1496393168@workspace> |
Download | mbox | patch |
Permalink | /patch/21132/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/mercurial/hook.py b/mercurial/hook.py --- a/mercurial/hook.py +++ b/mercurial/hook.py @@ -13,6 +13,7 @@ from .i18n import _ from . import ( demandimport, + encoding, error, extensions, pycompat, @@ -97,7 +98,7 @@ (hname, exc.args[0])) else: ui.warn(_('error: %s hook raised an exception: ' - '%s\n') % (hname, exc)) + '%s\n') % (hname, encoding.strtolocal(str(exc)))) if throw: raise if not ui.tracebackflag: