~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-07-29 09:32:50 UTC
  • mfrom: (3582.1.6 check_compatible)
  • Revision ID: pqm@pqm.ubuntu.com-20080729093250-b1g7zu2k1pj0mswe
(mbp) Better message about incompatible repositories

Show diffs side-by-side

added added

removed removed

Lines of Context:
774
774
 
775
775
class IncompatibleRepositories(BzrError):
776
776
 
777
 
    _fmt = "Repository %(target)s is not compatible with repository"\
778
 
        " %(source)s"
 
777
    _fmt = "%(target)s\n" \
 
778
            "is not compatible with\n" \
 
779
            "%(source)s\n" \
 
780
            "%(details)s"
779
781
 
780
 
    def __init__(self, source, target):
781
 
        BzrError.__init__(self, target=target, source=source)
 
782
    def __init__(self, source, target, details=None):
 
783
        if details is None:
 
784
            details = "(no details)"
 
785
        BzrError.__init__(self, target=target, source=source, details=details)
782
786
 
783
787
 
784
788
class IncompatibleRevision(BzrError):