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 |
|
|
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