Changeset 171 in tailor


Ignore:
Timestamp:
11/30/04 16:37:03 (8 years ago)
Author:
lele@…
Hash name:
20041130153703-97f81-94678bda20e537d6c39fb0a2c1d98eff080088f6
Message:

Do not print tracebacks for well known exceptions

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tailor.py

    r160 r171  
    4444        main(module='vcpx.tests', argv=sys.argv) 
    4545    else: 
    46         from vcpx.tailor import main 
    47  
     46        from vcpx.tailor import main, ExistingProjectError, ProjectNotTailored 
     47        from vcpx.target import TargetInitializationFailure 
     48         
    4849        if len(sys.argv) == 1: 
    4950            sys.argv.append('--help') 
     51 
     52        try: 
     53            main() 
     54        except ExistingProjectError, exc: 
     55            print exc 
     56        except UnknownProjectError, exc: 
     57            print exc 
     58        except TargetInitializationFailure, exc: 
     59            print exc 
    5060             
    51         main() 
  • vcpx/cvsps.py

    r166 r171  
    330330        if not found: 
    331331            raise TargetInitializationFailure( 
    332                 "Something went wrong, did not find the right cvsps " 
    333                 "revision in '%s'" % wdir) 
     332                "Something went wrong: unable to determine the exact upstream " 
     333                "revision of the checked out tree in '%s'" % wdir) 
    334334        else: 
    335335            if logger: logger.info("working copy up to cvsps revision %s", 
Note: See TracChangeset for help on using the changeset viewer.