/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-03 04:35:49 UTC
  • mfrom: (2778 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2779.
  • Revision ID: mbp@sourcefrog.net-20070903043549-0cfyrgx7z2h8ppks
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
770
770
    import bzrlib.ui
771
771
    from bzrlib.ui.text import TextUIFactory
772
772
    bzrlib.ui.ui_factory = TextUIFactory()
773
 
    argv = [a.decode(bzrlib.user_encoding) for a in argv[1:]]
 
773
    try:
 
774
        argv = [a.decode(bzrlib.user_encoding) for a in argv[1:]]
 
775
    except UnicodeDecodeError:
 
776
        raise errors.BzrError(("Parameter '%r' is unsupported by the current "
 
777
                                                            "encoding." % a))
774
778
    ret = run_bzr_catch_errors(argv)
775
779
    trace.mutter("return code %d", ret)
776
780
    return ret