~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Martin Pool
  • Date: 2006-04-13 05:37:24 UTC
  • mto: This revision was merged to the branch mainline in revision 1662.
  • Revision ID: mbp@sourcefrog.net-20060413053724-8c0053ac31492637
Give an error for bzr diff on an nonexistent file (Malone #3619)

Show diffs side-by-side

added added

removed removed

Lines of Context:
265
265
        self.path = path
266
266
 
267
267
 
 
268
class PathsNotVersionedError(BzrNewError):
 
269
    # used when reporting several paths are not versioned
 
270
    """Path(s) are not versioned: %(paths_as_string)s"""
 
271
 
 
272
    def __init__(self, paths):
 
273
        from bzrlib.osutils import quotefn
 
274
        BzrNewError.__init__(self)
 
275
        self.paths = paths
 
276
        self.paths_as_string = ' '.join([quotefn(p) for p in paths])
 
277
 
 
278
 
268
279
class BadFileKindError(BzrError):
269
280
    """Specified file is of a kind that cannot be added.
270
281