/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: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2018-09-21 23:21:13 UTC
  • mfrom: (7123.2.1 line-endings)
  • Revision ID: breezy.the.bot@gmail.com-20180921232113-sf3g5vzaeu4l2jiv
Improve error message if line endings in format file were corrupted.

Merged from https://code.launchpad.net/~jelmer/brz/line-endings/+merge/355463

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."