/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/commands.py

  • Committer: Martin Pool
  • Date: 2007-09-24 06:42:21 UTC
  • mfrom: (2713.2.3 error-exitcode)
  • mto: This revision was merged to the branch mainline in revision 2874.
  • Revision ID: mbp@sourcefrog.net-20070924064221-nu12try0hbilenlj
Return exitcode 4 on internal error

Show diffs side-by-side

added added

removed removed

Lines of Context:
803
803
    except (KeyboardInterrupt, Exception), e:
804
804
        # used to handle AssertionError and KeyboardInterrupt
805
805
        # specially here, but hopefully they're handled ok by the logger now
806
 
        trace.report_exception(sys.exc_info(), sys.stderr)
 
806
        exitcode = trace.report_exception(sys.exc_info(), sys.stderr)
807
807
        if os.environ.get('BZR_PDB'):
808
808
            print '**** entering debugger'
809
809
            import pdb
810
810
            pdb.post_mortem(sys.exc_traceback)
811
 
        return 3
 
811
        return exitcode
812
812
 
813
813
 
814
814
def run_bzr_catch_user_errors(argv):