Skip to content
Snippets Groups Projects
Commit 8c8fcb38 authored by Yuya Nishihara's avatar Yuya Nishihara
Browse files

py3: use forcebytestr() to stringify hook exception

This fixes test-narrow-exchange.t.
parent 76542910
No related branches found
No related tags found
No related merge requests found
......@@ -102,7 +102,7 @@
(hname, exc.args[0]))
else:
ui.warn(_('error: %s hook raised an exception: '
'%s\n') % (hname, encoding.strtolocal(str(exc))))
'%s\n') % (hname, stringutil.forcebytestr(exc)))
if throw:
raise
if not ui.tracebackflag:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment