~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 23:55:13 UTC
  • mto: This revision was merged to the branch mainline in revision 1979.
  • Revision ID: john@arbash-meinel.com-20060821235513-d73d7754ad4629d1
Change the InvalidRevisionSpec formatting to be more readable

Show diffs side-by-side

added added

removed removed

Lines of Context:
510
510
# Inheriting from NoSuchRevision to maintain API compatibility
511
511
# technically, this could be a completely different exception
512
512
class InvalidRevisionSpec(NoSuchRevision):
513
 
    """Requested revision: %(spec)s does not exist in branch: %(branch)s%(extra)s"""
 
513
    """Requested revision: '%(spec)s' does not exist in branch:
 
514
%(branch)s%(extra)s"""
514
515
 
515
516
    is_user_error = True
516
517
 
518
519
        NoSuchRevision.__init__(self, branch=branch, revision=spec)
519
520
        self.spec = spec
520
521
        if extra:
521
 
            self.extra = '; ' + str(extra)
 
522
            self.extra = '\n' + str(extra)
522
523
        else:
523
524
            self.extra = ''
524
525