~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/commands.py

Changed error status to 3

Show diffs side-by-side

added added

removed removed

Lines of Context:
535
535
    except BzrCommandError, e:
536
536
        # command line syntax error, etc
537
537
        log_error(str(e))
538
 
        return 1
 
538
        return 3
539
539
    except BzrError, e:
540
540
        bzrlib.trace.log_exception()
541
 
        return 1
 
541
        return 3
542
542
    except AssertionError, e:
543
543
        bzrlib.trace.log_exception('assertion failed: ' + str(e))
544
544
        return 3
545
545
    except KeyboardInterrupt, e:
546
546
        bzrlib.trace.log_exception('interrupted')
547
 
        return 2
 
547
        return 3
548
548
    except Exception, e:
549
549
        import errno
550
550
        if (isinstance(e, IOError) 
551
551
            and hasattr(e, 'errno')
552
552
            and e.errno == errno.EPIPE):
553
553
            bzrlib.trace.note('broken pipe')
554
 
            return 2
 
554
            return 3
555
555
        else:
556
556
            ## import pdb
557
557
            ## pdb.pm()
558
558
            bzrlib.trace.log_exception()
559
 
            return 2
 
559
            return 3
560
560
 
561
561
if __name__ == '__main__':
562
562
    sys.exit(main(sys.argv))