##// 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 from .i18n import _
13 from .i18n import _
14 from . import (
14 from . import (
15 demandimport,
15 demandimport,
16 encoding,
16 error,
17 error,
17 extensions,
18 extensions,
18 pycompat,
19 pycompat,
@@ -97,7 +98,7 b' def _pythonhook(ui, repo, htype, hname, '
97 (hname, exc.args[0]))
98 (hname, exc.args[0]))
98 else:
99 else:
99 ui.warn(_('error: %s hook raised an exception: '
100 ui.warn(_('error: %s hook raised an exception: '
100 '%s\n') % (hname, exc))
101 '%s\n') % (hname, encoding.strtolocal(str(exc))))
101 if throw:
102 if throw:
102 raise
103 raise
103 if not ui.tracebackflag:
104 if not ui.tracebackflag:
General Comments 0
You need to be logged in to leave comments. Login now