Mercurial > public > mercurial-scm > hg
comparison mercurial/hook.py @ 8206:cce63ef1045b
ui: print_exc() -> traceback()
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sun, 26 Apr 2009 16:50:44 -0500 |
parents | f779e1996e23 |
children | a1a5a57efe90 |
comparison
equal
deleted
inserted
replaced
8205:00736cd2702a | 8206:cce63ef1045b |
---|---|
59 else: | 59 else: |
60 ui.warn(_('error: %s hook raised an exception: ' | 60 ui.warn(_('error: %s hook raised an exception: ' |
61 '%s\n') % (hname, exc)) | 61 '%s\n') % (hname, exc)) |
62 if throw: | 62 if throw: |
63 raise | 63 raise |
64 ui.print_exc() | 64 ui.traceback() |
65 return True | 65 return True |
66 if r: | 66 if r: |
67 if throw: | 67 if throw: |
68 raise util.Abort(_('%s hook failed') % hname) | 68 raise util.Abort(_('%s hook failed') % hname) |
69 ui.warn(_('warning: %s hook failed\n') % hname) | 69 ui.warn(_('warning: %s hook failed\n') % hname) |