##// END OF EJS Templates
py3: convert exception to bytes to pass into ui.warn()...
Pulkit Goyal -
r32642:c032e137 default
parent child Browse files
Show More
@@ -13,6 +13,7 b' import sys'
13 13 from .i18n import _
14 14 from . import (
15 15 demandimport,
16 encoding,
16 17 error,
17 18 extensions,
18 19 pycompat,
@@ -97,7 +98,7 b' def _pythonhook(ui, repo, htype, hname, '
97 98 (hname, exc.args[0]))
98 99 else:
99 100 ui.warn(_('error: %s hook raised an exception: '
100 '%s\n') % (hname, exc))
101 '%s\n') % (hname, encoding.strtolocal(str(exc))))
101 102 if throw:
102 103 raise
103 104 if not ui.tracebackflag:
General Comments 0
You need to be logged in to leave comments. Login now