/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/errors.py

  • Committer: Jelmer Vernooij
  • Date: 2018-09-21 02:03:52 UTC
  • mfrom: (2955.6.1 bzr.dev)
  • mto: This revision was merged to the branch mainline in revision 7125.
  • Revision ID: jelmer@jelmer.uk-20180921020352-1vsrjxp3aqwhlbog
Improve error message if line endings in format file were corrupted.

Show diffs side-by-side

added added

removed removed

Lines of Context:
592
592
        self.format = format
593
593
 
594
594
 
 
595
class LineEndingError(BzrError):
 
596
 
 
597
    _fmt = ("Line ending corrupted for file: %(file)s; "
 
598
            "Maybe your files got corrupted in transport?")
 
599
 
 
600
    def __init__(self, file):
 
601
        self.file = file
 
602
 
 
603
 
595
604
class IncompatibleFormat(BzrError):
596
605
 
597
606
    _fmt = "Format %(format)s is not compatible with .bzr version %(controldir)s."