/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 bzrlib/errors.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-06-20 16:01:47 UTC
  • mfrom: (5987.1.5 799212-non-ascii-confs)
  • Revision ID: pqm@pqm.ubuntu.com-20110620160147-19cp6oo7bt8a92jo
(vila) Clearer exceptions for bad-content config files (Vincent Ladeuil)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1770
1770
    _fmt = "Working tree has conflicts."
1771
1771
 
1772
1772
 
 
1773
class ConfigContentError(BzrError):
 
1774
 
 
1775
    _fmt = "Config file %(filename)s is not UTF-8 encoded\n"
 
1776
 
 
1777
    def __init__(self, filename):
 
1778
        BzrError.__init__(self)
 
1779
        self.filename = filename
 
1780
 
 
1781
 
1773
1782
class ParseConfigError(BzrError):
1774
1783
 
1775
1784
    _fmt = "Error(s) parsing config file %(filename)s:\n%(errors)s"