~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: John Arbash Meinel
  • Date: 2006-08-21 18:09:32 UTC
  • mto: This revision was merged to the branch mainline in revision 1953.
  • Revision ID: john@arbash-meinel.com-20060821180932-d7d326b1982e2b62
Raise a reasonable error when a command is non-ascii

Show diffs side-by-side

added added

removed removed

Lines of Context:
924
924
    """Parameter %(param)s contains a newline."""
925
925
 
926
926
 
 
927
class UnicodeCommand(BzrNewError):
 
928
    """Requested command %(command)r is not a valid ascii command name"""
 
929
 
 
930
    def __init__(self, command):
 
931
        BzrNewError.__init__(self, command=command)
 
932
 
 
933
 
927
934
class DependencyNotPresent(BzrNewError):
928
935
    """Unable to import library "%(library)s": %(error)s"""
929
936