##// END OF EJS Templates
py3: use forcebytestr() to stringify hook exception...
Yuya Nishihara -
r41007:8c8fcb38 default
parent child Browse files
Show More
@@ -102,7 +102,7 b' def pythonhook(ui, repo, htype, hname, f'
102 (hname, exc.args[0]))
102 (hname, exc.args[0]))
103 else:
103 else:
104 ui.warn(_('error: %s hook raised an exception: '
104 ui.warn(_('error: %s hook raised an exception: '
105 '%s\n') % (hname, encoding.strtolocal(str(exc))))
105 '%s\n') % (hname, stringutil.forcebytestr(exc)))
106 if throw:
106 if throw:
107 raise
107 raise
108 if not ui.tracebackflag:
108 if not ui.tracebackflag:
General Comments 0
You need to be logged in to leave comments. Login now