Skip to content
Snippets Groups Projects
Commit 2a71d9483199 authored by Siddharth Agarwal's avatar Siddharth Agarwal
Browse files

hook: for python hook exceptions, add note to run with --traceback

Just like with ImportErrors, it isn't obvious that --traceback will produce
helpful debugging output here.
parent 88e309a0c133
No related branches found
No related tags found
No related merge requests found
......@@ -106,6 +106,8 @@
'%s\n') % (hname, exc))
if throw:
raise
if not ui.tracebackflag:
ui.warn(_('(run with --traceback for stack trace)\n'))
ui.traceback()
return True, True
finally:
......
......@@ -541,6 +541,7 @@
searching for changes
no changes found
error: post-pull.broken hook raised an exception: unsupported operand type(s) for +: 'int' and 'dict'
(run with --traceback for stack trace)
but post- python hooks that fail to *load* do
$ echo '[hooks]' > .hg/hgrc
......
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