Show More
@@ -6,7 +6,7 b'' | |||
|
6 | 6 | # GNU General Public License version 2 or any later version. |
|
7 | 7 | |
|
8 | 8 | from i18n import _ |
|
9 | import os, sys, atexit, signal, pdb, socket, errno, shlex, time | |
|
9 | import os, sys, atexit, signal, pdb, socket, errno, shlex, time, traceback | |
|
10 | 10 | import util, commands, hg, fancyopts, extensions, hook, error |
|
11 | 11 | import cmdutil, encoding |
|
12 | 12 | import ui as uimod |
@@ -57,6 +57,7 b' def _runcatch(ui, args):' | |||
|
57 | 57 | except: |
|
58 | 58 | # enter the debugger when we hit an exception |
|
59 | 59 | if '--debugger' in args: |
|
60 | traceback.print_exc() | |
|
60 | 61 | pdb.post_mortem(sys.exc_info()[2]) |
|
61 | 62 | ui.traceback() |
|
62 | 63 | raise |
General Comments 0
You need to be logged in to leave comments.
Login now