~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/trace.py

  • Committer: Martin Pool
  • Date: 2007-09-18 05:35:31 UTC
  • mto: (2830.2.10 test-traceback)
  • mto: This revision was merged to the branch mainline in revision 2874.
  • Revision ID: mbp@sourcefrog.net-20070918053531-hwrmyg05y3az3xcx
If TestCase.run_bzr hits an internal exception, don't catch it but rather propagate up into the test suite

Show diffs side-by-side

added added

removed removed

Lines of Context:
308
308
 
309
309
 
310
310
def report_exception(exc_info, err_file):
 
311
    """Report an exception to err_file (typically stderr) and to .bzr.log.
 
312
    """
311
313
    exc_type, exc_object, exc_tb = exc_info
312
314
    # Log the full traceback to ~/.bzr.log
313
315
    log_exception_quietly()