Mercurial > public > mercurial-scm > hg
comparison mercurial/dispatch.py @ 8206:cce63ef1045b
ui: print_exc() -> traceback()
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sun, 26 Apr 2009 16:50:44 -0500 |
parents | 9b8ac5fb7760 |
children | 46293a0c7e9f |
comparison
equal
deleted
inserted
replaced
8205:00736cd2702a | 8206:cce63ef1045b |
---|---|
45 ui.flush() | 45 ui.flush() |
46 except: | 46 except: |
47 # enter the debugger when we hit an exception | 47 # enter the debugger when we hit an exception |
48 if '--debugger' in args: | 48 if '--debugger' in args: |
49 pdb.post_mortem(sys.exc_info()[2]) | 49 pdb.post_mortem(sys.exc_info()[2]) |
50 ui.print_exc() | 50 ui.traceback() |
51 raise | 51 raise |
52 | 52 |
53 # Global exception handling, alphabetically | 53 # Global exception handling, alphabetically |
54 # Mercurial-specific first, followed by built-in and library exceptions | 54 # Mercurial-specific first, followed by built-in and library exceptions |
55 except error.AmbiguousCommand, inst: | 55 except error.AmbiguousCommand, inst: |