~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Martin Pool
  • Date: 2006-04-19 07:16:05 UTC
  • mto: This revision was merged to the branch mainline in revision 1675.
  • Revision ID: mbp@sourcefrog.net-20060419071605-51207e739c997442
Give a clear error for bzr status of an unversioned, nonexistent file. (Malone #3619)

Show diffs side-by-side

added added

removed removed

Lines of Context:
280
280
        self.paths_as_string = ' '.join([quotefn(p) for p in paths])
281
281
 
282
282
 
 
283
class PathsDoNotExist(BzrNewError):
 
284
    # used when reporting that paths are neither versioned nor in the working
 
285
    # tree
 
286
    """Path(s) do not exist: %(paths_as_string)s"""
 
287
 
 
288
    def __init__(self, paths):
 
289
        from bzrlib.osutils import quotefn
 
290
        BzrNewError.__init__(self)
 
291
        self.paths = paths
 
292
        self.paths_as_string = ' '.join([quotefn(p) for p in paths])
 
293
 
 
294
 
 
295
 
283
296
class BadFileKindError(BzrError):
284
297
    """Specified file is of a kind that cannot be added.
285
298