equal
deleted
inserted
replaced
253 except: # re-raises |
253 except: # re-raises |
254 # enter the debugger when we hit an exception |
254 # enter the debugger when we hit an exception |
255 if '--debugger' in req.args: |
255 if '--debugger' in req.args: |
256 traceback.print_exc() |
256 traceback.print_exc() |
257 debugmortem[debugger](sys.exc_info()[2]) |
257 debugmortem[debugger](sys.exc_info()[2]) |
258 ui.traceback() |
|
259 raise |
258 raise |
260 |
259 |
261 return _callcatch(ui, _runcatchfunc) |
260 return _callcatch(ui, _runcatchfunc) |
262 |
261 |
263 def _callcatch(ui, func): |
262 def _callcatch(ui, func): |